Class UnsuccessfulStatusCodeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
de.xima.fc.api.rest.pub.client.form.ApiException
de.xima.fc.api.rest.pub.client.form.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 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

      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 Details

    • 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:
      getLocalizedMessage in class Throwable