Package com.adobe.granite.rest
Class RequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.adobe.granite.rest.RestException
-
- com.adobe.granite.rest.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 RequestExceptionRequestException(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.
-
-
-
Constructor Detail
-
RequestException
public RequestException(int statusCode, java.lang.String message)
Creates a new RequestException- Parameters:
statusCode
- HTTP status codemessage
- Error message
-
RequestException
public RequestException(int statusCode, java.lang.String message, java.lang.Throwable cause)
-
-