Class LocalCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.gcube.common.gxrest.response.outbound.LocalCodeException
- All Implemented Interfaces:
Serializable,ErrorCode
A local exception wrapping an
ErrorCode.- Author:
- Manuele Simi (ISTI CNR), Luca Frosini (ISTI-CNR)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetId()Identifier of the code.The message associated to the codeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LocalCodeException
Creates a new local code exception.- Parameters:
code- the error code
-
-
Method Details
-
getId
public int getId()Description copied from interface:ErrorCodeIdentifier of the code. -
getMessage
Description copied from interface:ErrorCodeThe message associated to the code- Specified by:
getMessagein interfaceErrorCode- Overrides:
getMessagein classThrowable- Returns:
- the message
-