Class RequestException

  • All Implemented Interfaces:
    java.io.Serializable

    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 Summary

      Constructors 
      Constructor Description
      RequestException​(int statusCode, java.lang.String message)
      Creates a new RequestException
      RequestException​(int statusCode, java.lang.String message, java.lang.Throwable cause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getStatusCode()
      Returns the HTTP status code.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RequestException

        public RequestException​(int statusCode,
                                java.lang.String message)
        Creates a new RequestException
        Parameters:
        statusCode - HTTP status code
        message - Error message
      • RequestException

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

      • getStatusCode

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