home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 January / PCO0198.ISO / 1&1 / java.z / java_301 / netscape / javascript / JSException.class (.txt) next >
Encoding:
Java Class File  |  1996-10-20  |  915 b   |  32 lines

  1. package netscape.javascript;
  2.  
  3. public class JSException extends Exception {
  4.    String filename;
  5.    int lineno;
  6.    String source;
  7.    int tokenIndex;
  8.  
  9.    public JSException() {
  10.       this.filename = "unknown";
  11.       this.lineno = 0;
  12.       this.source = "";
  13.       this.tokenIndex = 0;
  14.    }
  15.  
  16.    public JSException(String s) {
  17.       super(s);
  18.       this.filename = "unknown";
  19.       this.lineno = 0;
  20.       this.source = "";
  21.       this.tokenIndex = 0;
  22.    }
  23.  
  24.    public JSException(String s, String filename, int lineno, String source, int tokenIndex) {
  25.       super(s);
  26.       this.filename = filename;
  27.       this.lineno = lineno;
  28.       this.source = source;
  29.       this.tokenIndex = tokenIndex;
  30.    }
  31. }
  32.