Class ChatErrorResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.azure.core.exception.AzureException
com.azure.core.exception.HttpResponseException
com.azure.communication.chat.models.ChatErrorResponseException
- All Implemented Interfaces:
Serializable
Exception thrown on chat specific errors
- See Also:
-
Constructor Summary
ConstructorDescriptionChatErrorResponseException
(String message, HttpResponse response) Initializes a new instance of the ChatErrorResponseException class.ChatErrorResponseException
(String message, HttpResponse response, ChatError value) Initializes a new instance of the ChatErrorResponseException class. -
Method Summary
Methods inherited from class com.azure.core.exception.HttpResponseException
getResponse
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ChatErrorResponseException
Initializes a new instance of the ChatErrorResponseException class.- Parameters:
message
- the exception message or the response content if a message is not available.response
- the HTTP response.
-
ChatErrorResponseException
Initializes a new instance of the ChatErrorResponseException 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
- Overrides:
getValue
in classHttpResponseException
- Returns:
- The deserialized HTTP response value.
-