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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestErrorerror()Returns the underlying error.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 messageerror- the error
-
RequestException
public RequestException(RequestError error, Throwable cause)
Creates an instance with an underlying error and an underlying cause- Parameters:
error- the errorcause- 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 errorcause- the cause;
-
-
Method Detail
-
error
public RequestError error()
Returns the underlying error.- Returns:
- the error
-
-