Class ErrorResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.azure.core.exception.AzureException
-
- com.azure.core.exception.HttpResponseException
-
- com.azure.ai.anomalydetector.models.ErrorResponseException
-
- All Implemented Interfaces:
Serializable
public final class ErrorResponseException extends com.azure.core.exception.HttpResponseException
Exception thrown for an invalid response with ErrorResponse information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorResponseException(String message, com.azure.core.http.HttpResponse response)
Initializes a new instance of the ErrorResponseException class.ErrorResponseException(String message, com.azure.core.http.HttpResponse response, ErrorResponse value)
Initializes a new instance of the ErrorResponseException class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorResponse
getValue()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ErrorResponseException
public ErrorResponseException(String message, com.azure.core.http.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, com.azure.core.http.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 Detail
-
getValue
public ErrorResponse getValue()
- Overrides:
getValue
in classcom.azure.core.exception.HttpResponseException
-
-