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 an ErrorCode.
Author:
Manuele Simi (ISTI CNR), Luca Frosini (ISTI-CNR)
See Also:
  • Constructor Details

    • LocalCodeException

      public LocalCodeException(ErrorCode code)
      Creates a new local code exception.
      Parameters:
      code - the error code
  • Method Details

    • getId

      public int getId()
      Description copied from interface: ErrorCode
      Identifier of the code.
      Specified by:
      getId in interface ErrorCode
      Returns:
      the id
    • getMessage

      public String getMessage()
      Description copied from interface: ErrorCode
      The message associated to the code
      Specified by:
      getMessage in interface ErrorCode
      Overrides:
      getMessage in class Throwable
      Returns:
      the message