Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

netscape.javascript
Class JSException  view JSException download JSException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bynetscape.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 Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
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
           
(package private)  java.lang.String filename
           
(package private)  int lineno
           
(package private)  java.lang.String source
           
(package private)  int tokenIndex
           
private  java.lang.Object wrappedException
           
private  int wrappedExceptionType
           
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
  JSException()
          Deprecated. Not for public use in future versions.
private 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.
 
Method Summary
 java.lang.Object getWrappedException()
          Instance method getWrappedException.
 int getWrappedExceptionType()
          Instance method getWrappedExceptionType returns the int mapping of the type of the wrappedException Object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.

Method Detail

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.