
com.azure.communication.chat.models.ChatErrorResponseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-communication-chat Show documentation
Show all versions of azure-communication-chat Show documentation
This package contains a Java SDK for Chat Azure Communication Services.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.communication.chat.models;
import com.azure.core.exception.HttpResponseException;
import com.azure.core.http.HttpResponse;
/**
* Exception thrown on chat specific errors
*/
public class ChatErrorResponseException extends HttpResponseException {
/**
* Initializes a new instance of the ChatErrorResponseException class.
*
* @param message the exception message or the response content if a message is not available.
* @param response the HTTP response.
*/
public ChatErrorResponseException(String message, HttpResponse response) {
super(message, response);
}
/**
* Initializes a new instance of the ChatErrorResponseException class.
*
* @param message the exception message or the response content if a message is not available.
* @param response the HTTP response.
* @param value the deserialized response value.
*/
public ChatErrorResponseException(
String message, HttpResponse response, ChatError value) {
super(message, response, value);
}
@Override
public ChatError getValue() {
return (ChatError) super.getValue();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy