1 19 20 package org.netbeans.api.languages; 21 22 23 28 public class ParseException extends Exception { 29 30 private ASTNode node; 31 32 33 36 public ParseException () {} 37 38 43 public ParseException (String text) { 44 super (text); 45 } 46 47 52 public ParseException (Exception ex) { 53 super (ex); 54 if (ex instanceof ParseException) 55 node = ((ParseException) ex).getASTNode (); 56 } 57 58 64 public ParseException (String text, ASTNode root) { 65 super (text); 66 this.node = root; 67 } 68 69 75 public ParseException (Exception ex, ASTNode root) { 76 super (ex); 77 this.node = root; 78 } 79 80 85 public ASTNode getASTNode () { 86 return node; 87 } 88 } 89 90 | Popular Tags |