java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
netscape.javascript.JSException
- All Implemented Interfaces:
- java.io.Serializable
- public class JSException
- extends java.lang.RuntimeException
JSException is an exception which is thrown when JavaScript code
returns an error.
| Nested classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Throwable |
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
EXCEPTION_TYPE_EMPTY
public static final int EXCEPTION_TYPE_EMPTY
- See Also:
- Constant Field Values
EXCEPTION_TYPE_VOID
public static final int EXCEPTION_TYPE_VOID
- See Also:
- Constant Field Values
EXCEPTION_TYPE_OBJECT
public static final int EXCEPTION_TYPE_OBJECT
- See Also:
- Constant Field Values
EXCEPTION_TYPE_FUNCTION
public static final int EXCEPTION_TYPE_FUNCTION
- See Also:
- Constant Field Values
EXCEPTION_TYPE_STRING
public static final int EXCEPTION_TYPE_STRING
- See Also:
- Constant Field Values
EXCEPTION_TYPE_NUMBER
public static final int EXCEPTION_TYPE_NUMBER
- See Also:
- Constant Field Values
EXCEPTION_TYPE_BOOLEAN
public static final int EXCEPTION_TYPE_BOOLEAN
- See Also:
- Constant Field Values
EXCEPTION_TYPE_ERROR
public static final int EXCEPTION_TYPE_ERROR
- See Also:
- Constant Field Values
filename
java.lang.String filename
lineno
int lineno
source
java.lang.String source
tokenIndex
int tokenIndex
wrappedExceptionType
private int wrappedExceptionType
wrappedException
private java.lang.Object wrappedException
JSException
public JSException()
- Deprecated. Not for public use in future versions.
- Constructs a JSException without a detail message.
A detail message is a String that describes this particular exception.
JSException
public JSException(java.lang.String s)
- Deprecated. Not for public use in future versions.
- Constructs a JSException with a detail message.
A detail message is a String that describes this particular exception.
JSException
private JSException(int wrappedExceptionType,
java.lang.Object wrappedException)
- Constructs a JSException with a wrapped JavaScript exception object.
This constructor needs to be public so that Java users can throw
exceptions to JS cleanly.
JSException
public 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.
- Constructs a JSException with a detail message and all the
other info that usually comes with a JavaScript error.
getWrappedExceptionType
public int getWrappedExceptionType()
- Instance method getWrappedExceptionType returns the int mapping of the
type of the wrappedException Object.
getWrappedException
public java.lang.Object getWrappedException()
- Instance method getWrappedException.