Package java.nio.charset
Class UnsupportedCharsetException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- java.nio.charset.UnsupportedCharsetException
-
- All Implemented Interfaces:
Serializable
public class UnsupportedCharsetException extends IllegalArgumentException
AnUnsupportedCharsetExceptionis thrown when an unsupported charset name is encountered.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsupportedCharsetException(String charsetName)Constructs a newUnsupportedCharsetExceptionwith the supplied charset name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCharsetName()Gets the encountered unsupported charset name.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UnsupportedCharsetException
public UnsupportedCharsetException(String charsetName)
Constructs a newUnsupportedCharsetExceptionwith the supplied charset name.- Parameters:
charsetName- the encountered unsupported charset name.
-
-
Method Detail
-
getCharsetName
public String getCharsetName()
Gets the encountered unsupported charset name.- Returns:
- the encountered unsupported charset name.
-
-