Class CharConversionException in Java

digitization, transformation, binary

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.

Ads code goes here
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 !

READ  Class GZIPInputStream in Java

Leave a Comment

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