ChatError Class

  • java.lang.Object
    • com.azure.communication.chat.models.ChatError

public final class ChatError

The Chat Services error.

Constructor Summary

Constructor Description
ChatError(String message, String code, String target, List<ChatError> details, ChatError innerError)

Constructs a new ChatError

Method Summary

Modifier and Type Method and Description
String getCode()

Get the code property: The error code.

List<ChatError> getDetails()

Get the details property: Further details about specific errors that led to this error.

ChatError getInnerError()

Get the innerError property: The inner error if any.

String getMessage()

Get the message property: The error message.

String getTarget()

Get the target property: The error target.

Methods inherited from java.lang.Object

Constructor Details

ChatError

public ChatError(String message, String code, String target, List details, ChatError innerError)

Constructs a new ChatError

Parameters:

message - The message of the original error
code - The error code
target - The target of the error
details - Additional details
innerError - The inner error

Method Details

getCode

public String getCode()

Get the code property: The error code.

Returns:

the code value.

getDetails

public List getDetails()

Get the details property: Further details about specific errors that led to this error.

Returns:

the details value.

getInnerError

public ChatError getInnerError()

Get the innerError property: The inner error if any.

Returns:

the innerError value.

getMessage

public String getMessage()

Get the message property: The error message.

Returns:

the message value.

getTarget

public String getTarget()

Get the target property: The error target.

Returns:

the target value.

Applies to