Class RequestException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gcube.smartgears.handlers.application.request.RequestException
All Implemented Interfaces:
Serializable

public class RequestException extends RuntimeException
Thrown for the occurrence of an error during request processing.
Author:
Fabio Simeoni, Luca Frosini (ISTI-CNR)
See Also:
  • Constructor Details

    • RequestException

      public RequestException(RequestError error)
      Creates an instance with an underlying error.
      Parameters:
      error - the error
    • RequestException

      public RequestException(RequestError error, String message)
      Creates an instance with an underling error and a custom message.
      Parameters:
      message - the message
      error - the error
    • RequestException

      public RequestException(RequestError error, Throwable cause)
      Creates an instance with an underlying error and an underlying cause
      Parameters:
      error - the error
      cause - the cause;
    • RequestException

      public RequestException(RequestError error, Throwable cause, String message)
      Creates an instance with an underlying error, an underlying cause, and an underlying message.
      Parameters:
      error - the error
      cause - the cause
      message - the message
  • Method Details

    • error

      public RequestError error()
      Returns the underlying error.
      Returns:
      the error