APIdia Launch Partner
Top Description Fields Constructors
java.lang

public Class UnsupportedOperationException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
java.nio.ReadOnlyBufferException, java.nio.file.ReadOnlyFileSystemException

Thrown to indicate that the requested operation is not supported.

This class is a member of the Java Collections Framework.

Author
Josh Bloch
Since
1.2

Field Summary

Modifier and TypeField and Description
pack-priv static final long

Constructor Summary

AccessConstructor and Description
public
UnsupportedOperationException()

Constructs a new UnsupportedOperationException with null as its detail message.

public
UnsupportedOperationException(String
the detail message
message
)

Constructs a new UnsupportedOperationException with the specified detail message.

public
UnsupportedOperationException(String
the detail message (which is saved for later retrieval by the Throwable#getMessage() method).
message
,
Throwable
the cause (which is saved for later retrieval by the Throwable#getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Constructs a new UnsupportedOperationException with the specified detail message and cause.

public
UnsupportedOperationException(Throwable
the cause (which is saved for later retrieval by the Throwable#getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
cause
)

Constructs a new UnsupportedOperationException with the specified cause and a detail message of (cause==null ?

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Annotations
@Serial

Constructor Detail

UnsupportedOperationExceptionback to summary
public UnsupportedOperationException()

Constructs a new UnsupportedOperationException with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause(Throwable).

UnsupportedOperationExceptionback to summary
public UnsupportedOperationException(String message)

Constructs a new UnsupportedOperationException with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause(Throwable).

Parameters
message:String

the detail message

UnsupportedOperationExceptionback to summary
public UnsupportedOperationException(String message, Throwable cause)

Constructs a new UnsupportedOperationException with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

Parameters
message:String

the detail message (which is saved for later retrieval by the Throwable#getMessage() method).

cause:Throwable

the cause (which is saved for later retrieval by the Throwable#getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Since
1.5
UnsupportedOperationExceptionback to summary
public UnsupportedOperationException(Throwable cause)

Constructs a new UnsupportedOperationException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for exceptions that are little more than wrappers for other throwables (for example, java.security.PrivilegedActionException).

Parameters
cause:Throwable

the cause (which is saved for later retrieval by the Throwable#getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Since
1.5