APIdia Launch Partner
Top Description Fields Constructors
javax.imageio

public Class IIOException

extends IOException
Class Inheritance
Known Direct Subclasses
javax.imageio.metadata.IIOInvalidTreeException
Imports
java.io.IOException, .Serial

An exception class used for signaling run-time failure of reading and writing operations.

In addition to a message string, a reference to another Throwable (Error or Exception) is maintained. This reference, if non-null, refers to the event that caused this exception to occur. For example, an IOException while reading from a File would be stored there.

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides java.io.IOException.serialVersionUID.

Use serialVersionUID from JDK 9 for interoperability.

Constructor Summary

AccessConstructor and Description
public
IIOException(String
the error message.
message
)

Constructs an IIOException with a given message String.

public
IIOException(String
the error message.
message
,
Throwable
the Throwable (Error or Exception) that caused this exception to occur.
cause
)

Constructs an IIOException with a given message String and a Throwable that was its underlying cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.io.IOException.serialVersionUID.

Use serialVersionUID from JDK 9 for interoperability.

Annotations
@Serial

Constructor Detail

IIOExceptionback to summary
public IIOException(String message)

Constructs an IIOException with a given message String. No underlying cause is set; getCause will return null.

Parameters
message:String

the error message.

See Also
getMessage
IIOExceptionback to summary
public IIOException(String message, Throwable cause)

Constructs an IIOException with a given message String and a Throwable that was its underlying cause.

Parameters
message:String

the error message.

cause:Throwable

the Throwable (Error or Exception) that caused this exception to occur.

See Also
getCause, getMessage