public class JSException extends RuntimeException
Modifier and Type | Field and Description |
---|---|
static int |
EXCEPTION_TYPE_BOOLEAN
EXCEPTION_TYPE_BOOLEAN = 5.
|
static int |
EXCEPTION_TYPE_EMPTY
EXCEPTION_TYPE_EMPTY = -1.
|
static int |
EXCEPTION_TYPE_ERROR
EXCEPTION_TYPE_ERROR = 6.
|
static int |
EXCEPTION_TYPE_FUNCTION
EXCEPTION_TYPE_FUNCTION = 2.
|
static int |
EXCEPTION_TYPE_NUMBER
EXCEPTION_TYPE_NUMBER = 4.
|
static int |
EXCEPTION_TYPE_OBJECT
EXCEPTION_TYPE_OBJECT = 1.
|
static int |
EXCEPTION_TYPE_STRING
EXCEPTION_TYPE_STRING = 3.
|
static int |
EXCEPTION_TYPE_VOID
EXCEPTION_TYPE_VOID = 0.
|
Constructor and Description |
---|
JSException()
Constructor.
|
JSException(int exceptionType,
Object exception)
Constructor.
|
JSException(String message)
Constructor.
|
JSException(String message,
String filename,
int lineno,
String source,
int tokenIndex)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getWrappedException()
Returns the wrapped exception.
|
int |
getWrappedExceptionType()
Returns the wrapped exception type.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int EXCEPTION_TYPE_EMPTY
public static final int EXCEPTION_TYPE_VOID
public static final int EXCEPTION_TYPE_OBJECT
public static final int EXCEPTION_TYPE_FUNCTION
public static final int EXCEPTION_TYPE_STRING
public static final int EXCEPTION_TYPE_NUMBER
public static final int EXCEPTION_TYPE_BOOLEAN
public static final int EXCEPTION_TYPE_ERROR
public JSException()
public JSException(String message)
message
- the messagepublic JSException(String message, String filename, int lineno, String source, int tokenIndex)
message
- the messagefilename
- the filenamelineno
- the linenosource
- the sourcetokenIndex
- the tokenIndexpublic JSException(int exceptionType, Object exception)
exceptionType
- the exception typeexception
- the exceptionpublic int getWrappedExceptionType()
public Object getWrappedException()
Copyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.