Package org.kiwiproject.util.regex
Class NoMatchesFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kiwiproject.util.regex.NoMatchesFoundException
- All Implemented Interfaces:
Serializable
Exception class to indicate a regular expression match did not match.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNoMatchesFoundException(String message) Create a new instance with the given message. -
Method Summary
Modifier and TypeMethodDescriptionstatic NoMatchesFoundExceptionforPattern(Pattern pattern) Factory method to create a new instance with a standardized message for the givenPattern.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoMatchesFoundException
Create a new instance with the given message.- Parameters:
message- the exception message
-
-
Method Details
-
forPattern
Factory method to create a new instance with a standardized message for the givenPattern.- Parameters:
pattern- the Pattern object- Returns:
- a new instance
-