Class RESyntaxException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RESyntaxException
    extends java.lang.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RESyntaxException​(java.lang.String s)
      Constructor.
      RESyntaxException​(java.lang.String s, int offset)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Redundant override of getMessage(), added for ease of C# conversion
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RESyntaxException

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

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

      • getMessage

        public java.lang.String getMessage()
        Redundant override of getMessage(), added for ease of C# conversion
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        the message associated with the error