Class InvalidPatternException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    NoClosingBracketException

    public class InvalidPatternException
    extends java.lang.Exception
    Thrown when a pattern passed in an argument was wrong.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String pattern  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidPatternException​(java.lang.String message, java.lang.String pattern)
      Constructor for InvalidPatternException
      InvalidPatternException​(java.lang.String message, java.lang.String pattern, java.lang.Throwable cause)
      Constructor for InvalidPatternException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPattern()
      Get the invalid pattern
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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
    • Field Detail

      • pattern

        private final java.lang.String pattern
    • Constructor Detail

      • InvalidPatternException

        public InvalidPatternException​(java.lang.String message,
                                       java.lang.String pattern)
        Constructor for InvalidPatternException
        Parameters:
        message - explains what was wrong with the pattern.
        pattern - the invalid pattern.
      • InvalidPatternException

        public InvalidPatternException​(java.lang.String message,
                                       java.lang.String pattern,
                                       java.lang.Throwable cause)
        Constructor for InvalidPatternException
        Parameters:
        message - explains what was wrong with the pattern.
        pattern - the invalid pattern.
        cause - the cause.
        Since:
        4.10
    • Method Detail

      • getPattern

        public java.lang.String getPattern()
        Get the invalid pattern
        Returns:
        the invalid pattern.