Class RegexSyntaxException

  • All Implemented Interfaces:
    Serializable

    public class RegexSyntaxException
    extends Exception
    Thrown when an syntactically incorrect regular expression is detected.
    See Also:
    Serialized Form
    • 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
    • Constructor Detail

      • RegexSyntaxException

        public RegexSyntaxException​(String detail)
      • RegexSyntaxException

        public RegexSyntaxException​(String detail,
                                    int position)
    • Method Detail

      • 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