Most visited

Recently visited

Added in API level 1

UnsupportedOperationException

public class UnsupportedOperationException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.UnsupportedOperationException
Known Direct Subclasses


抛出以表明请求的操作不受支持。

本课是 Java Collections Framework的成员。

Summary

Public constructors

UnsupportedOperationException()

构造一个UnsupportedOperationException,但不包含详细消息。

UnsupportedOperationException(String message)

用指定的详细信息构造一个UnsupportedOperationException。

UnsupportedOperationException(String message, Throwable cause)

用指定的详细信息和原因构造一个新的异常。

UnsupportedOperationException(Throwable cause)

构造具有指定的原因和 (cause==null ? null : cause.toString())详细消息(它通常包含的 cause类和详细消息)的新异常。

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

UnsupportedOperationException

Added in API level 1
UnsupportedOperationException ()

构造一个UnsupportedOperationException,但不包含详细消息。

UnsupportedOperationException

Added in API level 1
UnsupportedOperationException (String message)

用指定的详细信息构造一个UnsupportedOperationException。

Parameters
message String: the detail message

UnsupportedOperationException

Added in API level 1
UnsupportedOperationException (String message, 
                Throwable cause)

用指定的详细信息和原因构造一个新的异常。

请注意,与 cause关联的详细消息 不会自动包含在此例外的详细消息中。

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

UnsupportedOperationException

Added in API level 1
UnsupportedOperationException (Throwable cause)

构造具有指定的原因和(cause==null ? null : cause.toString())详细消息(它通常包含的cause类和详细消息)的新异常。 此构造函数对于比其他throwables的包装稍微多些的异常(例如, PrivilegedActionException )非常有用。

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

Hooray!