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