Package net.sf.saxon.regex
Class RegexSyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.sf.saxon.regex.RegexSyntaxException
- All Implemented Interfaces:
Serializable
Thrown when an syntactically incorrect regular expression is detected.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Represents an unknown position within a string containing a regular expression. -
Constructor Summary
ConstructorsConstructorDescriptionRegexSyntaxException
(String detail) RegexSyntaxException
(String detail, int position) -
Method Summary
Modifier and TypeMethodDescriptionint
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 Details
-
UNKNOWN_POSITION
public static final int UNKNOWN_POSITIONRepresents an unknown position within a string containing a regular expression.- See Also:
-
-
Constructor Details
-
RegexSyntaxException
-
RegexSyntaxException
-
-
Method Details
-
getPosition
public int getPosition()Returns the index into the regular expression where the error was detected orUNKNOWN_POSITION
if this is unknown.- Returns:
- the index into the regular expression where the error was detected,
or
UNKNOWNN_POSITION
if this is unknown
-