Class: SlackWebApi::APIException
- Inherits:
-
CoreLibrary::ApiException
- Object
- CoreLibrary::ApiException
- SlackWebApi::APIException
- Defined in:
- lib/slack_web_api/exceptions/api_exception.rb
Overview
Class for exceptions when there is a network error, status code error, etc.
Direct Known Subclasses
AdminConversationsArchiveErrorSchemaException, AdminConversationsConvertToPrivateErrorSchemaException, AdminConversationsCreateErrorSchemaException, AdminConversationsDeleteErrorSchemaException, AdminConversationsDisconnectSharedErrorSchemaException, AdminConversationsGetTeamsErrorSchemaException, AdminConversationsInviteErrorSchemaException, AdminConversationsSearchErrorSchemaException, AdminConversationsSetConversationPrefsErrorSchemaException, AdminConversationsUnarchiveErrorSchema2Exception, AdminConversationsUnarchiveErrorSchema3Exception, AdminConversationsUnarchiveErrorSchemaException, ApiTestErrorSchemaException, AppsPermissionsInfoErrorSchemaException, AppsPermissionsRequestErrorSchemaException, AppsPermissionsResourcesListErrorSchemaException, AppsPermissionsScopesListErrorSchemaException, AppsUninstallErrorSchemaException, AuthRevokeErrorSchemaException, AuthTestErrorSchemaException, BotsInfoErrorSchemaException, ChatDeleteErrorSchemaException, ChatDeleteScheduledMessageErrorSchemaException, ChatGetPermalinkErrorSchemaException, ChatMeMessageErrorSchemaException, ChatPostEphemeralErrorSchemaException, ChatPostMessageErrorSchemaException, ChatScheduleMessageErrorSchemaException, ChatScheduledMessagesListErrorSchemaException, ChatUnfurlErrorSchemaException, ChatUpdateErrorSchemaException, ConversationsArchiveErrorSchemaException, ConversationsCloseErrorSchemaException, ConversationsCreateErrorSchemaException, ConversationsHistoryErrorSchemaException, ConversationsInfoErrorSchemaException, ConversationsInviteErrorSchema1Exception, ConversationsJoinErrorSchemaException, ConversationsKickErrorSchemaException, ConversationsLeaveErrorSchemaException, ConversationsListErrorSchemaException, ConversationsMarkErrorSchemaException, ConversationsMembersErrorSchemaException, ConversationsOpenErrorSchemaException, ConversationsRenameErrorSchemaException, ConversationsRepliesErrorSchemaException, ConversationsSetPurposeErrorSchemaException, ConversationsSetTopicErrorSchemaException, ConversationsUnarchiveErrorSchemaException, DefaultErrorTemplateException, DialogOpenErrorSchemaException, DndEndDndErrorSchemaException, DndEndSnoozeErrorSchemaException, DndInfoErrorSchemaException, DndSetSnoozeErrorSchemaException, FilesCommentsDeleteErrorSchemaException, FilesDeleteErrorSchemaException, FilesInfoErrorSchemaException, FilesListErrorSchemaException, FilesRevokePublicUrlErrorSchemaException, FilesSharedPublicUrlErrorSchemaException, FilesUploadErrorSchemaException, MigrationExchangeErrorSchemaException, OauthProviderException, PinsAddErrorSchemaException, PinsListErrorSchemaException, PinsRemoveErrorSchemaException, ReactionsAddErrorSchemaException, ReactionsGetErrorSchemaException, ReactionsListErrorSchemaException, ReactionsRemoveErrorSchemaException, RemindersAddErrorSchemaException, RemindersCompleteErrorSchemaException, RemindersDeleteErrorSchemaException, RemindersInfoErrorSchemaException, RemindersListErrorSchemaException, RtmConnectErrorSchemaException, StarsAddErrorSchemaException, StarsListErrorSchemaException, StarsRemoveErrorSchemaException, TeamAccessLogsErrorSchemaException, TeamInfoErrorSchemaException, TeamIntegrationLogsErrorSchemaException, TeamProfileGetErrorSchemaException, UsergroupsCreateErrorSchemaException, UsergroupsDisableErrorSchemaException, UsergroupsEnableErrorSchemaException, UsergroupsListErrorSchemaException, UsergroupsUpdateErrorSchemaException, UsergroupsUsersListErrorSchemaException, UsergroupsUsersUpdateErrorSchemaException, UsersConversationsErrorSchemaException, UsersCountsErrorSchemaException, UsersDeletePhotoErrorSchemaException, UsersIdentityErrorSchemaException, UsersInfoErrorSchemaException, UsersListErrorSchemaException, UsersLookupByEmailErrorSchemaException, UsersProfileGetErrorSchemaException, UsersProfileSetErrorSchemaException, UsersSetActiveErrorSchemaException, UsersSetPhotoErrorSchemaException, UsersSetPresenceErrorSchemaException
Instance Method Summary collapse
-
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
-
#to_s ⇒ Object
Provides a human-readable string representation of the object.
Instance Method Details
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
16 17 18 19 |
# File 'lib/slack_web_api/exceptions/api_exception.rb', line 16 def inspect class_name = self.class.name.split('::').last "<#{class_name} status_code: #{@response_code.inspect}, reason: #{@reason.inspect}>" end |
#to_s ⇒ Object
Provides a human-readable string representation of the object.
10 11 12 13 |
# File 'lib/slack_web_api/exceptions/api_exception.rb', line 10 def to_s class_name = self.class.name.split('::').last "<#{class_name} status_code: #{@response_code}, reason: #{@reason}>" end |