public class CompilerException extends IOException
Modifier and Type | Field and Description |
---|---|
private Throwable |
_cause
The throwable that caused this throwable to get thrown, or null if this throwable was not
caused by another throwable, or if the causative throwable is unknown.
|
(package private) static long |
serialVersionUID |
Constructor and Description |
---|
CompilerException(String message)
Construct a new exception with the specified message.
|
CompilerException(String message,
Throwable cause)
Construct a new exception with the specified message and wraps another cause.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Returns the cause of this throwable or
null if the cause is nonexistent or
unknown. |
Throwable |
initCause(Throwable cause)
Initializes the cause of this throwable to the specified value.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
static final long serialVersionUID
private Throwable _cause
public CompilerException(String message)
message
- Description of the errorpublic CompilerException(String message, Throwable cause)
message
- Description of the errorcause
- Throwablepublic Throwable initCause(Throwable cause)
This method can be called at most once. It is generally called from within the constructor,
or immediately after creating the throwable. If this throwable was created with CompilerException(String,Throwable)
, this method cannot be called even once.
initCause
in class Throwable
cause
- 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.)Throwable
instance.IllegalArgumentException
- if cause
is this throwable. (A throwable
cannot be its own cause.)IllegalStateException
- if this throwable was created with CompilerException(String,Throwable)
, or this method has already been called on this
throwable.public Throwable getCause()
null
if the cause is nonexistent or
unknown. (The cause is the throwable that caused this throwable to get thrown.)
This implementation returns the cause that was supplied via one of the constructors requiring
a Throwable
, or that was set after creation with the
initCause(Throwable)
method. While it is typically unnecessary to override this
method, a subclass can override it to return a cause set by some other means. This is
appropriate for a "legacy chained throwable" that predates the addition of chained exceptions
to Throwable
. Note that it is not necessary to override any of the
PrintStackTrace
methods, all of which invoke the getCause
method to determine the cause of a throwable.
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses