Package com.affinda.api.client.models
Class RequestErrorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.azure.core.exception.AzureException
-
- com.azure.core.exception.HttpResponseException
-
- com.affinda.api.client.models.RequestErrorException
-
- All Implemented Interfaces:
Serializable
public final class RequestErrorException extends com.azure.core.exception.HttpResponseExceptionException thrown for an invalid response with RequestError information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestErrorException(String message, com.azure.core.http.HttpResponse response)Initializes a new instance of the RequestErrorException class.RequestErrorException(String message, com.azure.core.http.HttpResponse response, RequestError value)Initializes a new instance of the RequestErrorException class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestErrorgetValue()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RequestErrorException
public RequestErrorException(String message, com.azure.core.http.HttpResponse response)
Initializes a new instance of the RequestErrorException class.- Parameters:
message- the exception message or the response content if a message is not available.response- the HTTP response.
-
RequestErrorException
public RequestErrorException(String message, com.azure.core.http.HttpResponse response, RequestError value)
Initializes a new instance of the RequestErrorException 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 RequestError getValue()
- Overrides:
getValuein classcom.azure.core.exception.HttpResponseException
-
-