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