Class UnsuccessfulStatusCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.xima.fc.api.rest.pub.client.security.ApiException
de.xima.fc.api.rest.pub.client.security.UnsuccessfulStatusCodeException
- All Implemented Interfaces:
Serializable
@Generated("de.xima.openapi.codegen.java_jaxrs.XimaJavaJaxrsGenerator")
public final class UnsuccessfulStatusCodeException
extends ApiException
When an answer was received from the REST API and the status code did match
a known status code, but that status code was not a success status code 2xx.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnsuccessfulStatusCodeException(int statusCode) Creates a new exception when a response contained an unsuccessful status code.UnsuccessfulStatusCodeException(int statusCode, String errorCode, String localizedMessage) Creates a new exception when a response contained an unsuccessful status code. -
Method Summary
Modifier and TypeMethodDescriptionintMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsuccessfulStatusCodeException
public UnsuccessfulStatusCodeException(int statusCode) Creates a new exception when a response contained an unsuccessful status code.- Parameters:
statusCode- The status code of the HTTP response.
-
UnsuccessfulStatusCodeException
Creates a new exception when a response contained an unsuccessful status code.- Parameters:
statusCode- The status code of the HTTP response.errorCode- The system's (technical) error code.localizedMessage- The (localized) error details to be displayed to the and user.
-
-
Method Details
-
statusCode
public int statusCode()- Returns:
- The status code of the HTTP response.
-
errorCode
- Returns:
- The code of the error causing this exception.
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classThrowable
-