Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
IllegalStateException() |
Constructs an IllegalStateException with no detail message. |
IllegalStateException(Throwable) |
Constructs a new exception with the specified cause and a detail
message of |
IllegalStateException(String) |
Constructs an IllegalStateException with the specified detail message. |
IllegalStateException(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
IllegalStateException(String, Throwable) |
Constructs a new exception with the specified detail message and cause. |
Constructs an IllegalStateException with no detail message.
[Android.Runtime.Register(".ctor", "()V", "")]
public IllegalStateException();
Constructs an IllegalStateException with no detail message. A detail message is a String that describes this particular exception.
Java documentation for java.lang.IllegalStateException.IllegalStateException()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
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
).
[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")]
public IllegalStateException(Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")>]
new Java.Lang.IllegalStateException : Java.Lang.Throwable -> Java.Lang.IllegalStateException
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.)
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
).
Added in 1.5.
Java documentation for java.lang.IllegalStateException.IllegalStateException(java.lang.Throwable)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructs an IllegalStateException with the specified detail message.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public IllegalStateException(string? s);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Lang.IllegalStateException : string -> Java.Lang.IllegalStateException
the String that contains a detailed message
Constructs an IllegalStateException with the specified detail message. A detail message is a String that describes this particular exception.
Java documentation for java.lang.IllegalStateException.IllegalStateException(java.lang.String)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected IllegalStateException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Lang.IllegalStateException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Lang.IllegalStateException
A JniHandleOwnershipindicating how to handle javaReference
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructs a new exception with the specified detail message and cause.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public IllegalStateException(string? message, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Java.Lang.IllegalStateException : string * Java.Lang.Throwable -> Java.Lang.IllegalStateException
the detail message (which is saved for later retrieval
by the Throwable#getMessage()
method).
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.)
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.
Added in 1.5.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in