net.sf.saxon.functions.regex
Class RegexSyntaxException
java.lang.Object
   java.lang.Throwable
java.lang.Throwable
       java.lang.Exception
java.lang.Exception
           net.sf.saxon.functions.regex.RegexSyntaxException
net.sf.saxon.functions.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 | 
| static int | UNKNOWN_POSITIONRepresents an unknown position within a string containing a regular expression.
 | 
 
 
| Method Summary | 
|  int | getPosition()Returns the index into the regular expression where the error was detected
 or
 UNKNOWN_POSITIONif this is unknown. | 
 
| Methods inherited from class java.lang.Throwable | 
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
 
 
UNKNOWN_POSITION
public static final int UNKNOWN_POSITION
- Represents an unknown position within a string containing a regular expression.
 
- See Also:
- Constant Field Values
 
RegexSyntaxException
public RegexSyntaxException(String detail)
RegexSyntaxException
public RegexSyntaxException(String detail,
                            int position)
getPosition
public int getPosition()
- Returns the index into the regular expression where the error was detected
 or UNKNOWN_POSITIONif this is unknown.
 
- 
- Returns:
- the index into the regular expression where the error was detected,
 or UNKNOWNN_POSITIONif this is unknown
 
Copyright (c) 2004-2010 Saxonica Limited. All rights reserved.