Class CharConversionException in Java

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 classFrom 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()

Share and Enjoy !

See also  Class PipedOutputStream in Java

Leave a Reply

Your email address will not be published. Required fields are marked *