public class JSException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
static int |
EXCEPTION_TYPE_BOOLEAN |
static int |
EXCEPTION_TYPE_EMPTY |
static int |
EXCEPTION_TYPE_ERROR |
static int |
EXCEPTION_TYPE_FUNCTION |
static int |
EXCEPTION_TYPE_NUMBER |
static int |
EXCEPTION_TYPE_OBJECT |
static int |
EXCEPTION_TYPE_STRING |
static int |
EXCEPTION_TYPE_VOID |
java.lang.String |
filename |
int |
lineno |
java.lang.String |
source |
int |
tokenIndex |
java.lang.Object |
wrappedException |
int |
wrappedExceptionType |
Constructor and Description |
---|
JSException()
Deprecated.
Not for public use in future versions.
|
JSException(int wrappedExceptionType,
java.lang.Object wrappedException)
Constructs a JSException with a wrapped JavaScript exception object.
|
JSException(java.lang.String s)
Deprecated.
Not for public use in future versions.
|
JSException(java.lang.String s,
java.lang.String filename,
int lineno,
java.lang.String source,
int tokenIndex)
Deprecated.
Not for public use in future versions.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getWrappedException()
Instance method getWrappedException.
|
int |
getWrappedExceptionType()
Instance method getWrappedExceptionType returns the int mapping of the
type of the wrappedException Object.
|
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 java.lang.String filename
public int lineno
public java.lang.String source
public int tokenIndex
public int wrappedExceptionType
public java.lang.Object wrappedException
@Deprecated public JSException()
@Deprecated public JSException(java.lang.String s)
s
- the detail messagepublic JSException(int wrappedExceptionType, java.lang.Object wrappedException)
wrappedExceptionType
- type of exceptionwrappedException
- actual exception@Deprecated public JSException(java.lang.String s, java.lang.String filename, int lineno, java.lang.String source, int tokenIndex)
s
- the detail messagefilename
- source file where exception raisedlineno
- line where exception raisedsource
- source text of exceptiontokenIndex
- index on line where exception raisedpublic int getWrappedExceptionType()
public java.lang.Object getWrappedException()