Package java.lang
Class UnsupportedOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.UnsupportedOperationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ReadOnlyBufferException
public class UnsupportedOperationException extends RuntimeException
Thrown when an unsupported operation is attempted.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description UnsupportedOperationException()Constructs a newUnsupportedOperationExceptionthat includes the current stack trace.UnsupportedOperationException(String detailMessage)Constructs a newUnsupportedOperationExceptionwith the current stack trace and the specified detail message.UnsupportedOperationException(String message, Throwable cause)Constructs a newUnsupportedOperationExceptionwith the current stack trace, the specified detail message and the specified cause.UnsupportedOperationException(Throwable cause)Constructs a newUnsupportedOperationExceptionwith the current stack trace and the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedOperationException
public UnsupportedOperationException()Constructs a newUnsupportedOperationExceptionthat includes the current stack trace. -
UnsupportedOperationException
Constructs a newUnsupportedOperationExceptionwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this exception.
-
UnsupportedOperationException
Constructs a newUnsupportedOperationExceptionwith the current stack trace, the specified detail message and the specified cause.- Parameters:
message- the detail message for this exception.cause- the optional cause of this exception, may benull.- Since:
- 1.5
-
UnsupportedOperationException
Constructs a newUnsupportedOperationExceptionwith the current stack trace and the specified cause.- Parameters:
cause- the optional cause of this exception, may benull.- Since:
- 1.5
-