1 8 14 package jfun.parsec; 15 16 25 public class UserException extends RuntimeException { 26 private final int ind; 27 28 31 public int getInd() { 32 return ind; 33 } 34 38 public UserException(String msg){ 39 this(-1, msg); 40 } 41 45 public UserException(String msg, Throwable cause){ 46 this(-1, msg, cause); 47 } 48 53 public UserException(final int ind) { 54 this.ind = ind; 55 } 56 57 58 64 public UserException(final int ind, String msg) { 65 super(msg); 66 this.ind = ind; 67 } 68 75 public UserException(int ind, String msg, Throwable arg1) { 76 super(msg, arg1); 77 this.ind = ind; 78 } 79 85 public UserException(int ind, Throwable arg0) { 86 super(arg0); 87 this.ind = ind; 88 } 89 } 90 | Popular Tags |