UnsupportedEncodingException

  • UnsupportedEncodingException signals that a character encoding is not supported.

  • It's a subclass of IOException and provides two constructors: one with a detail message and one without.

  • This exception typically arises when trying to use an encoding not recognized by the Java environment.

  • Inherited methods from Throwable allow access to stack trace, cause, and messages.

public class UnsupportedEncodingException extends IOException

The Character Encoding is not supported.

Public Constructor Summary

UnsupportedEncodingException()
Constructs an UnsupportedEncodingException without a detail message.
UnsupportedEncodingException(String s)
Constructs an UnsupportedEncodingException with a detail message.

Inherited Method Summary

Public Constructors

public UnsupportedEncodingException ()

Constructs an UnsupportedEncodingException without a detail message.

public UnsupportedEncodingException (String s)

Constructs an UnsupportedEncodingException with a detail message.

Parameters
s Describes the reason for the exception.