Class BusinessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.adamantic.quicknote.exceptions.BusinessException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ChannelNotFound
Base class for business exceptions - i.e. all exceptions that the application
should be prepared to handle as a business failure.
Most times, business exceptions indicate that the failure condition is permanent
if reparatory actions are not taken, and thus the application should not retry without
having a remediation strategy.
- Author:
- Domenico Barra - domenico@adamantic.io
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new business exception with the given code.BusinessException(ExceptionCode code, String message) Constructs a new business exception with the given code and message.BusinessException(ExceptionCode code, String message, Throwable cause) Constructs a new business exception with the given code, message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BusinessException
Constructs a new business exception with the given code.- Parameters:
code- the exception code.
-
BusinessException
Constructs a new business exception with the given code and message.- Parameters:
code- the exception code.message- the exception message.
-
BusinessException
Constructs a new business exception with the given code, message and cause.- Parameters:
code- the exception code.message- the exception message.cause- the exception that has caused this business exception.
-