netscape.javascript
Class JSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by netscape.javascript.JSException
All Implemented Interfaces:
Serializable

public class JSException
extends RuntimeException

Stub for the JSException. This is part of the Applet LiveConnect simulation. TODO: we have to evaluate if it is possible to use plugin.jar from jdk

Version:
$Revision: 6701 $
Author:
Ronald Brill
See Also:
Serialized Form

Field Summary
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 Summary
JSException()
          Constructor.
JSException(int exceptionType, Object exception)
          Constructor.
JSException(String message)
          Constructor.
JSException(String message, String filename, int lineno, String source, int tokenIndex)
          Constructor.
 
Method Summary
 Object getWrappedException()
          Returns the wrapped exception.
 int getWrappedExceptionType()
          Returns the wrapped exception type.
 
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
EXCEPTION_TYPE_EMPTY = -1.

See Also:
Constant Field Values

EXCEPTION_TYPE_VOID

public static final int EXCEPTION_TYPE_VOID
EXCEPTION_TYPE_VOID = 0.

See Also:
Constant Field Values

EXCEPTION_TYPE_OBJECT

public static final int EXCEPTION_TYPE_OBJECT
EXCEPTION_TYPE_OBJECT = 1.

See Also:
Constant Field Values

EXCEPTION_TYPE_FUNCTION

public static final int EXCEPTION_TYPE_FUNCTION
EXCEPTION_TYPE_FUNCTION = 2.

See Also:
Constant Field Values

EXCEPTION_TYPE_STRING

public static final int EXCEPTION_TYPE_STRING
EXCEPTION_TYPE_STRING = 3.

See Also:
Constant Field Values

EXCEPTION_TYPE_NUMBER

public static final int EXCEPTION_TYPE_NUMBER
EXCEPTION_TYPE_NUMBER = 4.

See Also:
Constant Field Values

EXCEPTION_TYPE_BOOLEAN

public static final int EXCEPTION_TYPE_BOOLEAN
EXCEPTION_TYPE_BOOLEAN = 5.

See Also:
Constant Field Values

EXCEPTION_TYPE_ERROR

public static final int EXCEPTION_TYPE_ERROR
EXCEPTION_TYPE_ERROR = 6.

See Also:
Constant Field Values
Constructor Detail

JSException

public JSException()
Constructor.


JSException

public JSException(String message)
Constructor.

Parameters:
message - the message

JSException

public JSException(String message,
                   String filename,
                   int lineno,
                   String source,
                   int tokenIndex)
Constructor.

Parameters:
message - the message
filename - the filename
lineno - the lineno
source - the source
tokenIndex - the tokenIndex

JSException

public JSException(int exceptionType,
                   Object exception)
Constructor.

Parameters:
exceptionType - the exception type
exception - the exception
Method Detail

getWrappedExceptionType

public int getWrappedExceptionType()
Returns the wrapped exception type.

Returns:
wrapped exception type

getWrappedException

public Object getWrappedException()
Returns the wrapped exception.

Returns:
wrapped exception


Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.