The exception class that can be thrown by scripts, or raised directly from the engine.
All Julian exceptions are derived from this class. An exception can be captured using the classic try-catch blocks, where exception are matched against each catch section in the script order.
For more information about exception handling, see here.
Parent Class
Type | Name | Signature |
---|---|---|
constructor | Exception | public Exception() |
constructor | Exception | public Exception(string) |
constructor | Exception | public Exception(string, System.Exception) |
method | getCause | public Exception getCause() |
method | getMessage | public String getMessage() |
method | getStackTrace | public String[] getStackTrace() |
method | printToError | public void printToError() |
public Exception()
Create an exception without any specific information.
public Exception(string message)
Create an exception with message.
Parameters
public Exception(string message, Exception cause)
Create an exception with message and cause, a.k.a the inner exception.
Parameters
public Exception getCause()
Get the cause, a.k.a the inner exception, of this exception, if any.
Returns
public String getMessage()
Get the message.
Returns
public String[] getStackTrace()
Get the current stack trace, starting from the function where the exception was thrown (originating function) and ending with the current function.
Returns
public void printToError()
Print the full stack trace to the standard error.
If the stack trace is too long, it might get truncated. If it's cause chain is longer than 4, the causes beyond the fourth will not be printed.