Class CharConversionException in Java
A CharConversionException object is thrown when a problem occurs in converting a character to a byte.
The structure of the class CharConversionException is given by
public class java.io.CharConversionException extends java.io.IOException {
// Constructors
public CharConversionException();//This constructor creates a CharConversionException with no detail message.
public CharConversionException(String s);//This constructor creates a CharConversionException with the specified detail message.
}
The class CharConversionException also inherits methods from class Object and Throwable.
From Object class | From Throwable class |
---|---|
clone() | fillInStackTrace() |
getClass() | getMessage() |
notify() | printStackTrace() |
wait() | printStackTrace(PrintWriter) |
wait(long, int) | getLocalizedMessage() |
wait(long) | printStackTrace(PrintStream) |
equals(Object) | |
toString() | |
finalize() | |
hashCode() | |
notifyAll() |