Class RequestException

  • All Implemented Interfaces:

    public class RequestException
    extends RestException
    The RequestException will be thrown if preconditions are not met to process the request or its allocated resource.
    See Also:
    Serialized Form
    • Constructor Detail

      • RequestException

        public RequestException​(int statusCode,
                                String message)
        Creates a new RequestException
        statusCode - HTTP status code
        message - Error message
      • RequestException

        public RequestException​(int statusCode,
                                String message,
                                Throwable cause)
    • Method Detail

      • getStatusCode

        public int getStatusCode()
        Returns the HTTP status code.
        HTTP status code