Class RESyntaxException

All Implemented Interfaces:
Serializable

public class RESyntaxException extends RuntimeException
Exception thrown to indicate a syntax error in a regular expression. This is a non-checked exception because you should only have problems compiling a regular expression during development. If you are making regular expression programs dynamically then you can catch it if you wish. But should not be forced to.
See Also:
  • Constructor Details

    • RESyntaxException

      public RESyntaxException(String s)
      Constructor.
      Parameters:
      s - Further description of the syntax error
    • RESyntaxException

      public RESyntaxException(String s, int offset)
      Constructor.
      Parameters:
      s - Further description of the syntax error
      offset - character position within regex where the error was detected