com.microsoft.tfs.core.util
Class CodePageMapping.UnknownEncodingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.microsoft.tfs.core.exceptions.TECoreException
                  extended by com.microsoft.tfs.core.util.CodePageMapping.UnknownEncodingException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
CodePageMapping

public static class CodePageMapping.UnknownEncodingException
extends TECoreException

An exception thrown to indicate that either a Charset or the name of an encoding specified as an argument to a CodePageMapping method was unknown to that class. This indicates that there was no configuration data available for the specified encoding, after looking at both hard-coded data and configuration data specified at runtime.

See Also:
Serialized Form

Constructor Summary
CodePageMapping.UnknownEncodingException(java.nio.charset.Charset charset)
          Creates a new CodePageMapping.UnknownEncodingException for the specified Charset.
CodePageMapping.UnknownEncodingException(java.lang.String encoding)
          Creates a new CodePageMapping.UnknownEncodingException for the specified encoding.
 
Method Summary
 java.nio.charset.Charset getCharset()
           
 java.lang.String getEncoding()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodePageMapping.UnknownEncodingException

public CodePageMapping.UnknownEncodingException(java.nio.charset.Charset charset)
Creates a new CodePageMapping.UnknownEncodingException for the specified Charset.

Parameters:
charset - a Charset that was unknown to a CodePageMapping method (must not be null)

CodePageMapping.UnknownEncodingException

public CodePageMapping.UnknownEncodingException(java.lang.String encoding)
Creates a new CodePageMapping.UnknownEncodingException for the specified encoding.

Parameters:
encoding - an encoding that was unknown to a CodePageMapping method (must not be null)
Method Detail

getEncoding

public java.lang.String getEncoding()
Returns:
the encoding that was unknown

getCharset

public java.nio.charset.Charset getCharset()
Returns:
the Charset that was unknown, or null


© 2015 Microsoft. All rights reserved.