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
An
UnsupportedCharsetException is 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
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 Details
-
UnsupportedCharsetException
Constructs a newUnsupportedCharsetExceptionwith the supplied charset name.- Parameters:
charsetName- the encountered unsupported charset name.
-
-
Method Details
-
getCharsetName
Gets the encountered unsupported charset name.- Returns:
- the encountered unsupported charset name.
-