Class StatusCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.fraunhofer.iosb.ilt.frostclient.exception.ServiceFailureException
de.fraunhofer.iosb.ilt.frostclient.exception.StatusCodeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NotAuthorizedException,NotFoundException
The exception that is thrown when the service returns something else than a
200 OK or 201 CREATED status.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStatusCodeException(String url, int statusCode, String statusMessage, String returnedContent) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
StatusCodeException
-
-
Method Details
-
getUrl
The URL that generated the failure response.- Returns:
- The URL that generated the failure response.
-
getStatusCode
public int getStatusCode()The status code returned by the server.- Returns:
- the statusCode
-
getStatusMessage
The status message returned by the server.- Returns:
- the statusMessage
-
getReturnedContent
The content returned by the server.- Returns:
- the returnedContent
-
toString
-