public class CompileException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
protected @Nullable Tree |
tree
A reference to where the compilation failure occurred.
|
Constructor and Description |
---|
CompileException()
Constructs a new compile exception with
null as its detail message. |
CompileException(@Nullable java.lang.String message)
Constructs a new compile exception with the specified detail message.
|
CompileException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause)
Constructs a new compile exception with the specified detail message and cause.
|
CompileException(@Nullable java.lang.String message,
@Nullable java.lang.Throwable cause,
@Nullable Tree tree)
Construct a new compile exception with the given
tree , message and
cause . |
CompileException(@Nullable java.lang.String message,
@NotNull Tree tree)
Construct a new compile exception with the given
tree and message . |
CompileException(@Nullable java.lang.Throwable cause)
Constructs a new compile 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).
|
CompileException(@Nullable java.lang.Throwable cause,
@Nullable Tree tree)
Construct a new compile exception with the given
tree and cause . |
CompileException(@Nullable Tree tree)
Construct a new compile exception with the given
tree . |
Modifier and Type | Method and Description |
---|---|
@Nullable Tree |
getTree()
Return a reference tree where the failure occurred.
|
@Nullable protected @Nullable Tree tree
public CompileException()
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 CompileException(@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 CompileException(@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 runtime 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 CompileException(@Nullable @Nullable java.lang.Throwable cause)
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 CompileException(@Nullable @Nullable Tree tree)
tree
.tree
- a tree reference where the failure occurred.public CompileException(@Nullable @Nullable java.lang.String message, @NotNull @NotNull Tree tree)
tree
and message
.message
- the message of the exception.tree
- a tree reference where the failure occurred.public CompileException(@Nullable @Nullable java.lang.String message, @Nullable @Nullable java.lang.Throwable cause, @Nullable @Nullable Tree tree)
tree
, message
and
cause
.message
- the message of the exception.cause
- the throwable that caused to the construction of this exception.tree
- a tree reference where the failure occurred.public CompileException(@Nullable @Nullable java.lang.Throwable cause, @Nullable @Nullable Tree tree)
tree
and cause
.cause
- the throwable that caused to the construction of this exception.tree
- a tree reference where the failure occurred.@Nullable @Contract(pure=true) public @Nullable Tree getTree()
null
if unknown or non-existing.