2ronwalfpackage org.mindswap.owls.validator;
2ronwalf
2ronwalf/**
2ronwalf * <p>Title: </p>
2ronwalf * <p>Description: </p>
2ronwalf * <p>Copyright: Copyright (c) 2005</p>
2ronwalf * <p>Company: Mindswap (htp://www.mindswap.org)</p>
2ronwalf * @author Michael Grove
2ronwalf * @version 1.0
2ronwalf */
2ronwalf
2ronwalfpublic class OWLSValidationException extends Exception
2ronwalf{
2ronwalf public static final int ERROR_PARSE = 0;
2ronwalf public static final int ERROR_FILE_NOT_FOUND = 1;
2ronwalf
2ronwalf private int mId;
2ronwalf
2ronwalf public OWLSValidationException(int theId, String theMsg)
2ronwalf {
2ronwalf super(theMsg);
2ronwalf mId = theId;
2ronwalf }
2ronwalf
2ronwalf public int getId() {
2ronwalf return mId;
2ronwalf }
2ronwalf
2ronwalf public static OWLSValidationException createParseException(String theMsg) {
2ronwalf return new OWLSValidationException(ERROR_PARSE,theMsg);
2ronwalf }
2ronwalf
2ronwalf public static OWLSValidationException createFileNotFoundException(String theMsg) {
2ronwalf return new OWLSValidationException(ERROR_FILE_NOT_FOUND,theMsg);
2ronwalf }
2ronwalf}