Class LocalCodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.gcube.common.gxrest.response.outbound.LocalCodeException
-
- All Implemented Interfaces:
Serializable,ErrorCode
public class LocalCodeException extends Exception implements ErrorCode
A local exception wrapping anErrorCode.- Author:
- Manuele Simi (ISTI CNR)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalCodeException(ErrorCode code)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()Identifier of the code.StringgetMessage()The message associated to the code-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
LocalCodeException
public LocalCodeException(ErrorCode code)
-
-
Method Detail
-
getId
public int getId()
Description copied from interface:ErrorCodeIdentifier of the code.
-
getMessage
public String getMessage()
Description copied from interface:ErrorCodeThe message associated to the code- Specified by:
getMessagein interfaceErrorCode- Overrides:
getMessagein classThrowable- Returns:
- the message
-
-