Package lumis.doui.service
Class RestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.ws.rs.WebApplicationException
-
- lumis.doui.service.RestException
-
- All Implemented Interfaces:
java.io.Serializable
public class RestException extends javax.ws.rs.WebApplicationException
Exception to represent an error of Rest Request Process.- Since:
- 6.1.0
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RestException(int code, java.lang.String message, java.lang.Exception exception, IDouiRestInterfaceRequest.ResponseType responseType)
Treats the exceptions thats occurs during the rest request process.RestException(int code, java.lang.String message, IDouiRestInterfaceRequest.ResponseType responseType)
Treats the exceptions that occurs during the rest request process.
-
-
-
Constructor Detail
-
RestException
public RestException(int code, java.lang.String message, java.lang.Exception exception, IDouiRestInterfaceRequest.ResponseType responseType)
Treats the exceptions thats occurs during the rest request process. This method builds a response error and logs the error that is passed as parameter.- Parameters:
code
- HTTP status code, e.g., 403, 404, 500, etc.message
- the message that will be send to client.e
- exception to be logged.- Since:
- 6.1.0
-
RestException
public RestException(int code, java.lang.String message, IDouiRestInterfaceRequest.ResponseType responseType)
Treats the exceptions that occurs during the rest request process. This method builds a response error.- Parameters:
code
- HTTP status code, e.g., 403, 404, 500, etc.message
- the message that will be send to client.- Since:
- 6.1.0
-
-