Package com.codingchili.core.context
Class CoreException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.codingchili.core.context.CoreException
- All Implemented Interfaces:
CoreExceptionFormat
,Serializable
- Direct Known Subclasses:
BlockNotConfiguredException
,ConfigurationMismatchException
,FileMissingException
,HashMismatchException
,NodeFailedToAcknowledge
,NodeNotReachableException
,NoServicesConfiguredForBlock
,NoSuchCommandException
,NothingToRemoveException
,NothingToUpdateException
,RemoteBlockNotConfiguredException
,RequestPayloadSizeException
,RequestTimedOutException
,StorageFailureException
,UnmappedException
,ValueAlreadyPresentException
,ValueMissingException
Exceptions should extend this class to allow for catching all core-type exceptions.
Additionally, all classes extending CoreException must be safe to be forwarded to clients.
- See Also:
- Serialized Form
-
Constructor Summary
ModifierConstructorDescriptionprotected
CoreException(String error)
protected
CoreException(String error, ResponseStatus status)
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CoreException
- Parameters:
error
- an error message.
-
CoreException
- Parameters:
error
- an error message.status
- a status code.
-
-
Method Details
-
status
- Specified by:
status
in interfaceCoreExceptionFormat
- Returns:
- the status code of the exception.
-