Class ChatOperationFailedException

All Implemented Interfaces:
ChatProvider, Serializable
Direct Known Subclasses:
AgentChatCloseOperationFailedException, SupervisorChatCloseOperationFailedException

public class ChatOperationFailedException extends OperationFailedException implements ChatProvider
Generic exception to be used for all kinds of errors during API operations with a chat
Since:
12.23
See Also:
  • Field Details

    • chat

      protected final transient Chat chat
      the chat of the failed operation
  • Constructor Details

    • ChatOperationFailedException

      public ChatOperationFailedException(String message, Chat chat)
      Constructs a new ChatOperationFailedException with the specified detail message and chat.
      Parameters:
      message - the error message
      chat - the chat of the failed operation
      Since:
      12.23
    • ChatOperationFailedException

      public ChatOperationFailedException(String message, Throwable cause, Chat chat)
      Constructs a new ChatOperationFailedException with the specified detail message, cause and chat.
      Parameters:
      message - the error message
      cause - the cause of the exception
      chat - the chat of the failed operation
      Since:
      12.23
  • Method Details

    • getChat

      public Chat getChat()
      Description copied from interface: ChatProvider
      Returns the chat
      Specified by:
      getChat in interface ChatProvider
      Returns:
      the chat
      Since:
      12.23