1 package com.thaiopensource.datatype.xsd.regex; 2 3 6 public class RegexSyntaxException extends Exception { 7 private final int position; 8 9 12 static public final int UNKNOWN_POSITION = -1; 13 14 public RegexSyntaxException(String detail) { 15 this(detail, UNKNOWN_POSITION); 16 } 17 18 public RegexSyntaxException(String detail, int position) { 19 super(detail); 20 this.position = position; 21 } 22 23 30 public int getPosition() { 31 return position; 32 } 33 } 34 | Popular Tags |