Class NoMatchesFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kiwiproject.util.regex.NoMatchesFoundException
All Implemented Interfaces:
Serializable

public class NoMatchesFoundException extends RuntimeException
Exception class to indicate a regular expression match did not match.
See Also:
  • Constructor Details

    • NoMatchesFoundException

      public NoMatchesFoundException(String message)
      Create a new instance with the given message.
      Parameters:
      message - the exception message
  • Method Details

    • forPattern

      public static NoMatchesFoundException forPattern(Pattern pattern)
      Factory method to create a new instance with a standardized message for the given Pattern.
      Parameters:
      pattern - the Pattern object
      Returns:
      a new instance