Class RestException

  • All Implemented Interfaces:
    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 Detail

      • RestException

        public RestException​(int code,
                             String message,
                             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,
                             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