ErrorResponseException Class

public final class ErrorResponseException
extends HttpResponseException

Exception thrown for an invalid response with ErrorResponse information.

Constructor Summary

Constructor Description
ErrorResponseException(String message, HttpResponse response)

Initializes a new instance of the ErrorResponseException class.

ErrorResponseException(String message, HttpResponse response, ErrorResponse value)

Initializes a new instance of the ErrorResponseException class.

Method Summary

Modifier and Type Method and Description
ErrorResponse getValue()

Methods inherited from HttpResponseException

Methods inherited from java.lang.Object

Methods inherited from java.lang.Throwable

Constructor Details

ErrorResponseException

public ErrorResponseException(String message, HttpResponse response)

Initializes a new instance of the ErrorResponseException class.

Parameters:

message - the exception message or the response content if a message is not available.
response - the HTTP response.

ErrorResponseException

public ErrorResponseException(String message, HttpResponse response, ErrorResponse value)

Initializes a new instance of the ErrorResponseException class.

Parameters:

message - the exception message or the response content if a message is not available.
response - the HTTP response.
value - the deserialized response value.

Method Details

getValue

public ErrorResponse getValue()

Overrides:

ErrorResponseException.getValue()

Applies to