Class PatternException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.SysException
com.aquima.interactions.foundation.text.PatternException
- All Implemented Interfaces:
Serializable
Exception representing an exception during parsing of number pattern.
This class is only responsible for holding the reason and possible cause of the exception.
- Since:
- 6.0
- Author:
- F. van der Meer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPatternException
(String pattern, String message) Constructs a pattern exception with a message, the message text will go unmodified into the system exception message.PatternException
(String pattern, String message, Throwable cause) Constructs a pattern exception with a message, the message text will go unmodified into the system exception message.PatternException
(String pattern, Throwable cause) Constructs a pattern exception with a cause, the message of the cause will be taken over in this exceptions' message. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the pattern that failed parsing.Methods inherited from class com.aquima.interactions.foundation.exception.SysException
raise, raise
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PatternException
Constructs a pattern exception with a message, the message text will go unmodified into the system exception message.- Parameters:
pattern
- The pattern that failed parsingmessage
- The message of the exceptioncause
- The cause of this exception
-
PatternException
Constructs a pattern exception with a message, the message text will go unmodified into the system exception message.- Parameters:
pattern
- The pattern that failed parsingmessage
- The message of the exception
-
PatternException
Constructs a pattern exception with a cause, the message of the cause will be taken over in this exceptions' message.- Parameters:
pattern
- The pattern that failed parsingcause
- The cause of this exception
-
-
Method Details
-
getPattern
This method returns the pattern that failed parsing.- Returns:
- The pattern that failed parsing.
-