Class SystemException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.adamantic.quicknote.exceptions.SystemException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConfigException,NotImplemented,TimeToLiveExpired
Base class for all system-level exceptions.
These are exceptions that are not caused by the user (business) logic, but by the system itself
(e.g. configuration errors, network errors, etc.).
In some circumstances, a system exception may disappear if the operation is retried
(e.g. a network error may be transient) - but the application should know how to handle each
specific system exception.
- Author:
- Domenico Barra - domenico@adamantic.io
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSystemException(ExceptionCode code) Constructs a new system exception with the given code.SystemException(ExceptionCode code, String message) Constructs a new system exception with the given code and message.SystemException(ExceptionCode code, String message, Throwable cause) Constructs a new system 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
-
SystemException
Constructs a new system exception with the given code.- Parameters:
code- the exception code.
-
SystemException
Constructs a new system exception with the given code and message.- Parameters:
code- the exception code.message- the exception message.
-
SystemException
Constructs a new system exception with the given code, message and cause.- Parameters:
code- the exception code.message- the exception message.cause- the exception that has caused this system exception.
-