Class ApplicationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.andresbustamante.yafoot.commons.exceptions.ApplicationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidTemplateException
,PastMatchException
,PlayerNotFoundException
,UnauthorisedUserException
Generic functional exception.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationException
(String code, String message) Default constructor with a message code and a log message.ApplicationException
(String message, Throwable cause) Default constructor with a log message and the cause of the exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApplicationException
Default constructor with a message code and a log message.- Parameters:
code
- Message code to use for translationmessage
- Message to log
-
ApplicationException
Default constructor with a log message and the cause of the exception.- Parameters:
message
- Message to logcause
- Cause of the exception
-