1 package org.relaxng.datatype; 2 3 9 public class DatatypeException extends Exception { 10 11 public DatatypeException( int index, String msg ) { 12 super(msg); 13 this.index = index; 14 } 15 public DatatypeException( String msg ) { 16 this(UNKNOWN,msg); 17 } 18 22 public DatatypeException() { 23 this(UNKNOWN,null); 24 } 25 26 27 private final int index; 28 29 public static final int UNKNOWN = -1; 30 31 36 public int getIndex() { 37 return index; 38 } 39 } 40 | Popular Tags |