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