ErrorException Class

public final class ErrorException
extends ManagementException

Exception thrown for an invalid response with Error information.

Constructor Summary

Constructor Description
ErrorException(String message, HttpResponse response)

Initializes a new instance of the ErrorException class.

ErrorException(String message, HttpResponse response, Error value)

Initializes a new instance of the ErrorException class.

Method Summary

Modifier and Type Method and Description
Error getValue()

Methods inherited from HttpResponseException

Methods inherited from ManagementException

Methods inherited from java.lang.Object

Methods inherited from java.lang.Throwable

Constructor Details

ErrorException

public ErrorException(String message, HttpResponse response)

Initializes a new instance of the ErrorException class.

Parameters:

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

ErrorException

public ErrorException(String message, HttpResponse response, Error value)

Initializes a new instance of the ErrorException 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 Error getValue()

Overrides:

ErrorException.getValue()

Applies to