public class CallException extends Exception
Constructor and Description |
---|
CallException(Throwable cause)
Wraps the throwable
cause into a CallException . |
Modifier and Type | Method and Description |
---|---|
void |
printLuaFormatStackTraceback(PrintStream stream,
ChunkClassLoader chunkClassLoader,
String[] suppress)
Prints a stack traceback formatted similarly to the PUC-Lua stack traceback.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CallException(Throwable cause)
cause
into a CallException
.
Note that in contrast to the standard Exception
contract, cause
must not be null
.
cause
- error cause, must not be null
public void printLuaFormatStackTraceback(PrintStream stream, ChunkClassLoader chunkClassLoader, String[] suppress)
This method builds the stack traceback from a Java stack trace, but attempts
to filter out intermediate Java method calls that do not correspond to Lua function
calls. In order to identify Lua function classes in the Java stack trace,
it queries chunkClassLoader
(since this information is not available
in the stack trace).
When non-null
, the argument suppress
, is used to define Java classes
to be suppressed in the traceback in addition to the predefined runtime classes.
The traceback is printed as relative to the point of execution of this method.
stream
- print stream to use, must not be null
chunkClassLoader
- chunk class loader for determining whether classes correspond
to Lua functions, must not be null
suppress
- additional suppressed classes, may be null
NullPointerException
- if stream
or chunkClassLoader
is null
Copyright © 2016. All rights reserved.