public class java.lang
UnsupportedOperationException


Show All Login
Java SE 6
  
Extends: Throwable > Exception > RuntimeException
Extended by: HeadlessException
Details
Thrown to indicate that the requested operation is not supported.

This class is a member of the Java Collections Framework.
version1.21, 04/21/06
since1.2


Constructors
public UnsupportedOperationException()
Constructs an UnsupportedOperationException with no detail message.
public UnsupportedOperationException(String message) Details
Constructs an UnsupportedOperationException with the specified detail message.
messagethe detail message
public UnsupportedOperationException(String message, Throwable cause) Details
Constructs a new exception 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.
messagethe detail message (which is saved for later retrieval by the Throwable#getMessage() method).
causethe 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.)
since1.5

public UnsupportedOperationException(Throwable cause) Details
Constructs a new exception 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).
causethe 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.)
since1.5