1 *java.lang.IllegalStateException* *IllegalStateException* Signals that a method
3 public class IllegalStateException
4 extends |java.lang.RuntimeException|
6 |java.lang.IllegalStateException_Description|
7 |java.lang.IllegalStateException_Fields|
8 |java.lang.IllegalStateException_Constructors|
9 |java.lang.IllegalStateException_Methods|
11 ================================================================================
13 *java.lang.IllegalStateException_Constructors*
14 |java.lang.IllegalStateException()|Constructs an IllegalStateException with no
15 |java.lang.IllegalStateException(String)|Constructs an IllegalStateException wi
16 |java.lang.IllegalStateException(String,Throwable)|Constructs a new exception w
17 |java.lang.IllegalStateException(Throwable)|Constructs a new exception with the
19 *java.lang.IllegalStateException_Description*
21 Signals that a method has been invoked at an illegal or inappropriate time. In
22 other words, the Java environment or Java application is not in an appropriate
23 state for the requested operation.
26 *java.lang.IllegalStateException()*
28 public IllegalStateException()
30 Constructs an IllegalStateException with no detail message. A detail message is
31 a String that describes this particular exception.
34 *java.lang.IllegalStateException(String)*
36 public IllegalStateException(java.lang.String s)
38 Constructs an IllegalStateException with the specified detail message. A detail
39 message is a String that describes this particular exception.
41 s - the String that contains a detailed message
43 *java.lang.IllegalStateException(String,Throwable)*
45 public IllegalStateException(
46 java.lang.String message,
47 java.lang.Throwable cause)
49 Constructs a new exception with the specified detail message and cause.
51 Note that the detail message associated with cause is not automatically
52 incorporated in this exception's detail message.
54 message - the detail message (which is saved for later retrieval by the {@link
55 Throwable#getMessage()} method).
56 cause - the cause (which is saved for later retrieval by the {@link
57 Throwable#getCause()} method). (A null value is permitted, and indicates
58 that the cause is nonexistent or unknown.)
60 *java.lang.IllegalStateException(Throwable)*
62 public IllegalStateException(java.lang.Throwable cause)
64 Constructs a new exception with the specified cause and a detail message of
65 (cause==null ? null : cause.toString()) (which typically contains the class and
66 detail message of cause). This constructor is useful for exceptions that are
67 little more than wrappers for other throwables (for example,
68 (|java.security.PrivilegedActionException|) ).
70 cause - the cause (which is saved for later retrieval by the {@link
71 Throwable#getCause()} method). (A null value is permitted, and indicates
72 that the cause is nonexistent or unknown.)