Line data Source code
1 : 2 : class ChatwootClientException implements Exception { 3 : String cause; 4 : ChatwootClientExceptionType type; 5 3 : ChatwootClientException(this.cause, this.type); 6 : } 7 : 8 15 : enum ChatwootClientExceptionType{ 9 : SEND_MESSAGE_FAILED, 10 : CREATE_CONTACT_FAILED, 11 : CREATE_CONVERSATION_FAILED, 12 : GET_MESSAGES_FAILED, 13 : GET_CONTACT_FAILED, 14 : GET_CONVERSATION_FAILED, 15 : UPDATE_CONTACT_FAILED, 16 : UPDATE_MESSAGE_FAILED 17 : }