home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / plugin.jar / netscape / javascript / JSException.class (.txt) next >
Encoding:
Java Class File  |  2006-11-29  |  1.2 KB  |  59 lines

  1. package netscape.javascript;
  2.  
  3. public class JSException extends RuntimeException {
  4.    public static final int EXCEPTION_TYPE_EMPTY = -1;
  5.    public static final int EXCEPTION_TYPE_VOID = 0;
  6.    public static final int EXCEPTION_TYPE_OBJECT = 1;
  7.    public static final int EXCEPTION_TYPE_FUNCTION = 2;
  8.    public static final int EXCEPTION_TYPE_STRING = 3;
  9.    public static final int EXCEPTION_TYPE_NUMBER = 4;
  10.    public static final int EXCEPTION_TYPE_BOOLEAN = 5;
  11.    public static final int EXCEPTION_TYPE_ERROR = 6;
  12.    protected String message;
  13.    protected String filename;
  14.    protected int lineno;
  15.    protected String source;
  16.    protected int tokenIndex;
  17.    private int wrappedExceptionType;
  18.    private Object wrappedException;
  19.  
  20.    public JSException() {
  21.       this((String)null);
  22.    }
  23.  
  24.    public JSException(String var1) {
  25.       this(var1, (String)null, -1, (String)null, -1);
  26.    }
  27.  
  28.    public JSException(String var1, String var2, int var3, String var4, int var5) {
  29.       super(var1);
  30.       this.message = null;
  31.       this.filename = null;
  32.       this.lineno = -1;
  33.       this.source = null;
  34.       this.tokenIndex = -1;
  35.       this.wrappedExceptionType = -1;
  36.       this.wrappedException = null;
  37.       this.message = var1;
  38.       this.filename = var2;
  39.       this.lineno = var3;
  40.       this.source = var4;
  41.       this.tokenIndex = var5;
  42.       this.wrappedExceptionType = -1;
  43.    }
  44.  
  45.    public JSException(int var1, Object var2) {
  46.       this();
  47.       this.wrappedExceptionType = var1;
  48.       this.wrappedException = var2;
  49.    }
  50.  
  51.    public int getWrappedExceptionType() {
  52.       return this.wrappedExceptionType;
  53.    }
  54.  
  55.    public Object getWrappedException() {
  56.       return this.wrappedException;
  57.    }
  58. }
  59.