Class UnexpectedStatusCodeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
de.xima.fc.api.rest.pub.client.generic.ApiException
de.xima.fc.api.rest.pub.client.generic.UnexpectedStatusCodeException
All Implemented Interfaces:
Serializable

@Generated("de.xima.openapi.codegen.java_jaxrs.XimaJavaJaxrsGenerator") public final class UnexpectedStatusCodeException extends ApiException
When an answer was received from the REST API, but the status code did not match any known status code. This exception still lets you access the response data if you want to do something with that data manually.
See Also:
  • Constructor Details

    • UnexpectedStatusCodeException

      public UnexpectedStatusCodeException(javax.ws.rs.core.Response response)
      Creates a new exception when a response contained an unexpected status code.
      Parameters:
      response - The response that was received.
  • Method Details

    • response

      public javax.ws.rs.core.Response response()
      Returns:
      The received HTTP response with the unexpected status code.