net.sf.saxon.regex

Class RegexSyntaxException


public class RegexSyntaxException
extends Exception

Thrown when an syntactically incorrect regular expression is detected.

Field Summary

static int
UNKNOWN_POSITION
Represents an unknown position within a string containing a regular expression.

Constructor Summary

RegexSyntaxException(String detail)
RegexSyntaxException(String detail, int position)

Method Summary

int
getPosition()
Returns the index into the regular expression where the error was detected or UNKNOWN_POSITION if this is unknown.

Field Details

UNKNOWN_POSITION

public static final int UNKNOWN_POSITION
Represents an unknown position within a string containing a regular expression.
Field Value:
-1

Constructor Details

RegexSyntaxException

public RegexSyntaxException(String detail)

RegexSyntaxException

public RegexSyntaxException(String detail,
                            int position)

Method Details

getPosition

public int getPosition()
Returns the index into the regular expression where the error was detected or UNKNOWN_POSITION if this is unknown.
Returns:
the index into the regular expression where the error was detected, or UNKNOWNN_POSITION if this is unknown