org.gcube.smartgears.handlers.application.request
Class RequestException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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
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 cause
RequestException(RequestError error, Throwable cause, String message)
          Creates an instance with an underlying error, an underlying cause, and an underlying message.
 
Method Summary
 RequestError error()
          Returns the underlying error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 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;
Method Detail

error

public RequestError error()
Returns the underlying error.

Returns:
the error


Copyright © 2014. All Rights Reserved.