Class UnsuccessfulStatusCodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.xima.fc.api.rest.pub.client.user_portal.ApiException
-
- de.xima.fc.api.rest.pub.client.user_portal.UnsuccessfulStatusCodeException
-
- All Implemented Interfaces:
Serializable
@Generated("de.xima.openapi.codegen.java_jaxrs.XimaJavaJaxrsGenerator") public final class UnsuccessfulStatusCodeException extends ApiExceptionWhen 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsuccessfulStatusCodeException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringerrorCode()StringgetLocalizedMessage()intstatusCode()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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
public UnsuccessfulStatusCodeException(int statusCode, String errorCode, String localizedMessage)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 Detail
-
statusCode
public int statusCode()
- Returns:
- The status code of the HTTP response.
-
errorCode
public String errorCode()
- Returns:
- The code of the error causing this exception.
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessagein classThrowable
-
-