public class LuaRuntimeException extends RuntimeException
To retrieve the error object, use getErrorObject()
.
Constructor and Description |
---|
LuaRuntimeException(Object errorObject)
Constructs a new
LuaRuntimeException with errorObject as its
error object. |
LuaRuntimeException(Throwable cause)
Constructs a new
LuaRuntimeException with cause as its cause. |
Modifier and Type | Method and Description |
---|---|
Object |
getErrorObject()
Returns the error object attached to this exception.
|
String |
getMessage()
Returns the error object attached to this exception converted to a string.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public LuaRuntimeException(Object errorObject)
LuaRuntimeException
with errorObject
as its
error object. errorObject
may be null
.errorObject
- the error object, may be null
public LuaRuntimeException(Throwable cause)
LuaRuntimeException
with cause
as its cause.
When queried for the error object, invokes Conversions.toErrorObject(Throwable)
on cause
; when cause
is null
, then the error object
is null
.
cause
- the cause of this error, may be null
public String getMessage()
getMessage
in class Throwable
public Object getErrorObject()
null
.null
)Copyright © 2016. All rights reserved.