Class RegexSyntaxException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.thaiopensource.datatype.xsd.regex.RegexSyntaxException
-
- All Implemented Interfaces:
Serializable
public class RegexSyntaxException extends Exception
Thrown when an syntactically incorrect regular expression is detected.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
UNKNOWN_POSITION
Represents an unknown position within a string containing a regular expression.
-
Constructor Summary
Constructors Constructor Description RegexSyntaxException(String detail)
RegexSyntaxException(String detail, int position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPosition()
Returns the index into the regular expression where the error was detected orUNKNOWN_POSITION
if this is unknown.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
UNKNOWN_POSITION
public static final int UNKNOWN_POSITION
Represents an unknown position within a string containing a regular expression.- See Also:
- Constant Field Values
-
-