|Modifier and Type||Field and Description|
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.
|Constructor and Description|
Construct a new exception with the specified message.
Construct a new exception with the specified message and wraps another cause.
|Modifier and Type||Method and Description|
Returns the cause of this throwable or
Initializes the cause of this throwable to the specified value.
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CompilerException(String message)
message- Description of the error
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.
cause- the cause (which is saved for later retrieval by the
nullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
causeis 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.
nullif 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
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
Throwable. Note that it is not necessary to override any of the
PrintStackTrace methods, all of which invoke the
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