public class IllegalTreeException
extends java.lang.IllegalArgumentException
Modifier and Type | Field and Description |
---|---|
protected @Nullable Tree |
illegal
The illegal tree.
|
protected @Nullable Tree |
primary
The primary tree.
|
Constructor and Description |
---|
IllegalTreeException()
Constructs a new exception with
null as its detail message. |
IllegalTreeException(@Nullable java.lang.String message)
Constructs a new exception with the specified detail message.
|
IllegalTreeException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.
|
IllegalTreeException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given message and cause . |
IllegalTreeException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given message and cause . |
IllegalTreeException(@Nullable java.lang.String message,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given message . |
IllegalTreeException(@Nullable java.lang.String message,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given message . |
IllegalTreeException(@Nullable java.lang.Throwable cause)
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).
|
IllegalTreeException(@Nullable java.lang.Throwable cause,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given cause . |
IllegalTreeException(@Nullable java.lang.Throwable cause,
@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree and the
given cause . |
IllegalTreeException(@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree. |
IllegalTreeException(@Nullable Tree primary,
@Nullable Tree illegal)
Construct a new illegal tree exception with the given
illegal tree. |
Modifier and Type | Method and Description |
---|---|
@Nullable Tree |
getIllegalTree()
Return the illegal tree that caused this exception to be thrown.
|
@Nullable Tree |
getPrimaryTree()
Return the primary tree where the illegal tree was detected.
|
@Nullable protected @Nullable Tree illegal
@Nullable protected @Nullable Tree primary
public IllegalTreeException()
null
as its detail message. The cause is
not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable)
.public IllegalTreeException(@Nullable @Nullable java.lang.String message)
Throwable.initCause(java.lang.Throwable)
.message
- the detail message. The detail message is saved for later retrieval
by the Throwable.getMessage()
method.public IllegalTreeException(@Nullable @Nullable java.lang.String message, @Nullable @Nullable java.lang.Throwable cause)
Note
that the detail message associated with cause
is not automatically
incorporated in this exception's detail message.
message
- the detail message (which is saved for later retrieval by the Throwable.getMessage()
method).cause
- 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.)public IllegalTreeException(@Nullable @Nullable java.lang.Throwable cause)
PrivilegedActionException
).cause
- 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.)public IllegalTreeException(@Nullable @Nullable Tree illegal)
illegal
tree.illegal
- the illegal tree.public IllegalTreeException(@Nullable @Nullable java.lang.String message, @Nullable @Nullable Tree illegal)
illegal
tree and the
given message
.message
- the message of the exception.illegal
- the illegal tree.public IllegalTreeException(@Nullable @Nullable java.lang.String message, @Nullable @Nullable java.lang.Throwable cause, @Nullable @Nullable Tree illegal)
illegal
tree and the
given message
and cause
.message
- the message of the exception.cause
- the throwable that caused to the construction of this exception.illegal
- the illegal tree.public IllegalTreeException(@Nullable @Nullable java.lang.Throwable cause, @Nullable @Nullable Tree illegal)
illegal
tree and the
given cause
.cause
- the throwable that caused to the construction of this exception.illegal
- the illegal tree.public IllegalTreeException(@Nullable @Nullable Tree primary, @Nullable @Nullable Tree illegal)
illegal
tree.primary
- the primary tree.illegal
- the illegal tree.public IllegalTreeException(@Nullable @Nullable java.lang.String message, @Nullable @Nullable Tree primary, @Nullable @Nullable Tree illegal)
illegal
tree and the
given message
.message
- the message of the exception.primary
- the primary tree.illegal
- the illegal tree.public IllegalTreeException(@Nullable @Nullable java.lang.String message, @Nullable @Nullable java.lang.Throwable cause, @Nullable @Nullable Tree primary, @Nullable @Nullable Tree illegal)
illegal
tree and the
given message
and cause
.message
- the message of the exception.cause
- the throwable that caused to the construction of this exception.primary
- the primary tree.illegal
- the illegal tree.public IllegalTreeException(@Nullable @Nullable java.lang.Throwable cause, @Nullable @Nullable Tree primary, @Nullable @Nullable Tree illegal)
illegal
tree and the
given cause
.cause
- the throwable that caused to the construction of this exception.primary
- the primary tree.illegal
- the illegal tree.@Nullable @Contract(pure=true) public @Nullable Tree getIllegalTree()
null
if unknown or non-existing.@Nullable @Contract(pure=true) public @Nullable Tree getPrimaryTree()
null
if unknown or non-existing.