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 WebApplicationException
Exception to represent an error of Rest Request Process.- Since:
- 6.1.0
- Version:
- $Revision: 20856 $ $Date: 2017-12-21 13:07:16 -0200 (Thu, 21 Dec 2017) $
- 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.
-
Method Summary
-
Methods inherited from class javax.ws.rs.WebApplicationException
getResponse
-
-
-
-
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
-
-