Class 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:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • response

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