teamwire_api/exceptions¶
TWAPIException¶
Base class for exceptions raised by the Teamwire SDK
TWConnectionError¶
Connection Error
This represents a generic backend connectivity issue (e.g. timeout, backend down, etc.)
TWServerError¶
A generic problem on the backend side
TWAuthError¶
Authorisation error (i.e. the bot is not authorized perform the action)
TWInvalidMembersError¶
Referenced members are invalid (e.g. in a chat operation)
TWNotFoundError¶
A requested entity (User, Chat, Group, etc.) has not been found
TWImageLoadError¶
Error loading an image
TWImageUploadError¶
Error uploading an image
TWImageRemoveError¶
Error removing an image
TWReadReceiptsDisabled¶
Read receipts have been disabled by the admin
TWAssetLoadException¶
An attachment asset (picture, video, sound, file) cannot be loaded
TWAssetUploadException¶
An attachment asset (picture, video, sound, file) cannot be uploaded to the backend
TWPollCreationException¶
A poll cannot be created
TWPollLoadException¶
Up to date poll data cannot be loaded
TWAttachmentNotAllowed¶
Sending a specific attachment type (or attachments in general) is not allowed
TWUpdateMembersNotAllowed¶
Updating chat members is not allowed
TWLeaveChatNotAllowed¶
Leaving the chat is not allowed
TWCloseChatNotAllowed¶
Closing the chat is not allowed
TWInvalidState¶
Invalid state
TWDisableReadReceiptsNotAllowed¶
Disabling read receipt notifications is not allowed
TWMaxChatMembersExceeded¶
Trying to create a chat with too many members
TWIllegalArgument¶
Illegal argument