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
public class NoMatchesFoundException extends RuntimeException
Exception class to indicate a regular expression match did not match.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NoMatchesFoundException(String message)Create a new instance with the given message.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
NoMatchesFoundException
public NoMatchesFoundException(String message)
Create a new instance with the given message.- Parameters:
message- the exception message
-
-
Method Detail
-
forPattern
public static NoMatchesFoundException forPattern(Pattern pattern)
Factory method to create a new instance with a standardized message for the givenPattern.- Parameters:
pattern- the Pattern object- Returns:
- a new instance
-
-