Package de.fraunhofer.iosb.ilt.sta
Class StatusCodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.fraunhofer.iosb.ilt.sta.ServiceFailureException
-
- de.fraunhofer.iosb.ilt.sta.StatusCodeException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NotAuthorizedException,NotFoundException
public class StatusCodeException extends ServiceFailureException
The exception that is thrown when the service returns something else than a 200 OK status.- Author:
- scf
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StatusCodeException(String url, int statusCode, String statusMessage, String returnedContent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetReturnedContent()The content returned by the server.intgetStatusCode()The status code returned by the server.StringgetStatusMessage()The status message returned by the server.StringgetUrl()The URL that generated the failure response.StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Method Detail
-
getUrl
public String 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
public String getStatusMessage()
The status message returned by the server.- Returns:
- the statusMessage
-
getReturnedContent
public String getReturnedContent()
The content returned by the server.- Returns:
- the returnedContent
-
-