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
Thrown for the occurrence of an error during request processing.
- Author:
- Fabio Simeoni, Luca Frosini (ISTI-CNR)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRequestException(RequestError error) Creates an instance with an underlying error.RequestException(RequestError error, String message) Creates an instance with an underling error and a custom message.RequestException(RequestError error, Throwable cause) Creates an instance with an underlying error and an underlying causeRequestException(RequestError error, Throwable cause, String message) Creates an instance with an underlying error, an underlying cause, and an underlying message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RequestException
Creates an instance with an underlying error.- Parameters:
error- the error
-
RequestException
Creates an instance with an underling error and a custom message.- Parameters:
message- the messageerror- the error
-
RequestException
Creates an instance with an underlying error and an underlying cause- Parameters:
error- the errorcause- the cause;
-
RequestException
Creates an instance with an underlying error, an underlying cause, and an underlying message.- Parameters:
error- the errorcause- the causemessage- the message
-
-
Method Details
-
error
Returns the underlying error.- Returns:
- the error
-