lib/slack/web/api/errors.rb in slack-ruby-client-0.16.0 vs lib/slack/web/api/errors.rb in slack-ruby-client-0.17.0
- old
+ new
@@ -51,12 +51,10 @@
class CannotFindChannel < SlackError; end
class CannotFindMessage < SlackError; end
class CannotFindService < SlackError; end
class CannotInstallAnOrgInstalledApp < SlackError; end
class CannotInvalidatePrimaryOwner < SlackError; end
- class CannotKickHomeTeam < SlackError; end
- class CannotKickTeam < SlackError; end
class CannotModifyPrimaryOwner < SlackError; end
class CannotMoveLocalChannel < SlackError; end
class CannotParse < SlackError; end
class CannotParseAttachment < SlackError; end
class CannotPrompt < SlackError; end
@@ -164,12 +162,12 @@
class FileNotFound < SlackError; end
class FileNotShared < SlackError; end
class FileNotYetAvailable < SlackError; end
class FileUnderReview < SlackError; end
class ForbiddenHandle < SlackError; end
+ class ForbiddenTeam < SlackError; end
class GroupAlreadyLinkedToChannel < SlackError; end
- class GroupContainsOthers < SlackError; end
class GroupMustNotBeEmpty < SlackError; end
class GroupNotFound < SlackError; end
class HandleAlreadyExists < SlackError; end
class HashConflict < SlackError; end
class InactiveCall < SlackError; end
@@ -185,10 +183,11 @@
class InvalidAuth < SlackError; end
class InvalidBlocks < SlackError; end
class InvalidCallId < SlackError; end
class InvalidChannel < SlackError; end
class InvalidChannelId < SlackError; end
+ class InvalidChannelType < SlackError; end
class InvalidChannelsLimit < SlackError; end
class InvalidCharset < SlackError; end
class InvalidClientId < SlackError; end
class InvalidCode < SlackError; end
class InvalidCreatedBy < SlackError; end
@@ -196,11 +195,10 @@
class InvalidDate < SlackError; end
class InvalidDuration < SlackError; end
class InvalidEmail < SlackError; end
class InvalidEventContext < SlackError; end
class InvalidExternalId < SlackError; end
- class InvalidForIsMpim < SlackError; end
class InvalidFormData < SlackError; end
class InvalidGrantType < SlackError; end
class InvalidInputs < SlackError; end
class InvalidLimit < SlackError; end
class InvalidName < SlackError; end
@@ -248,16 +246,16 @@
class InviteeCantSeeChannel < SlackError; end
class IsArchived < SlackError; end
class IsBot < SlackError; end
class IsInactive < SlackError; end
class LastMember < SlackError; end
- class LeavingTeamNotInChannel < SlackError; end
- class LeavingTeamRequired < SlackError; end
class LimitRequired < SlackError; end
class LinkNotFound < SlackError; end
class MemberAnalyticsDisabled < SlackError; end
class MessageNotFound < SlackError; end
+ class MetadataNotAvailable < SlackError; end
+ class MetadataOnlyDoesNotSupportDate < SlackError; end
class MethodDeprecated < SlackError; end
class MethodNotSupportedForChannelType < SlackError; end
class MigrationInProgress < SlackError; end
class MissingArgs < SlackError; end
class MissingArgument < SlackError; end
@@ -292,17 +290,17 @@
class NoReaction < SlackError; end
class NoResolutionFound < SlackError; end
class NoScopes < SlackError; end
class NoSuchSubteam < SlackError; end
class NoTeamIdsGiven < SlackError; end
- class NoTeamsToDisconnect < SlackError; end
class NoText < SlackError; end
class NoUser < SlackError; end
class NoUserProvided < SlackError; end
class NoUsersProvided < SlackError; end
class NotAdmin < SlackError; end
class NotAllowed < SlackError; end
+ class NotAllowedForGridWorkspace < SlackError; end
class NotAllowedTokenType < SlackError; end
class NotAnAdmin < SlackError; end
class NotAnEnterprise < SlackError; end
class NotAppAdmin < SlackError; end
class NotArchived < SlackError; end
@@ -314,17 +312,17 @@
class NotEnterpriseTeam < SlackError; end
class NotFound < SlackError; end
class NotImplemented < SlackError; end
class NotInChannel < SlackError; end
class NotInDnd < SlackError; end
- class NotInGroup < SlackError; end
class NotPinnable < SlackError; end
class NotPinned < SlackError; end
class NotReactable < SlackError; end
class NotStarred < SlackError; end
class NotSupported < SlackError; end
class OauthAuthorizationUrlMismatch < SlackError; end
+ class OneOrMoreInvalidChannels < SlackError; end
class OrgLevelEmailDisplayDisabled < SlackError; end
class OrgLoginRequired < SlackError; end
class OrgNotFound < SlackError; end
class OrgUserNotInTeam < SlackError; end
class OverPaginationLimit < SlackError; end
@@ -356,10 +354,11 @@
class SentRecently < SlackError; end
class ServiceUnavailable < SlackError; end
class SessionExpired < SlackError; end
class SessionInvalidationFailed < SlackError; end
class SessionNotFound < SlackError; end
+ class SlackConnectBlockedFileType < SlackError; end
class SlackConnectFileLinkSharingBlocked < SlackError; end
class SlackConnectFileUploadSharingBlocked < SlackError; end
class SnoozeEndFailed < SlackError; end
class SnoozeFailed < SlackError; end
class SnoozeNotActive < SlackError; end
@@ -471,12 +470,10 @@
'cannot_find_channel' => CannotFindChannel,
'cannot_find_message' => CannotFindMessage,
'cannot_find_service' => CannotFindService,
'cannot_install_an_org_installed_app' => CannotInstallAnOrgInstalledApp,
'cannot_invalidate_primary_owner' => CannotInvalidatePrimaryOwner,
- 'cannot_kick_home_team' => CannotKickHomeTeam,
- 'cannot_kick_team' => CannotKickTeam,
'cannot_modify_primary_owner' => CannotModifyPrimaryOwner,
'cannot_move_local_channel' => CannotMoveLocalChannel,
'cannot_parse' => CannotParse,
'cannot_parse_attachment' => CannotParseAttachment,
'cannot_prompt' => CannotPrompt,
@@ -584,12 +581,12 @@
'file_not_found' => FileNotFound,
'file_not_shared' => FileNotShared,
'file_not_yet_available' => FileNotYetAvailable,
'file_under_review' => FileUnderReview,
'forbidden_handle' => ForbiddenHandle,
+ 'forbidden_team' => ForbiddenTeam,
'group_already_linked_to_channel' => GroupAlreadyLinkedToChannel,
- 'group_contains_others' => GroupContainsOthers,
'group_must_not_be_empty' => GroupMustNotBeEmpty,
'group_not_found' => GroupNotFound,
'handle_already_exists' => HandleAlreadyExists,
'hash_conflict' => HashConflict,
'inactive_call' => InactiveCall,
@@ -605,10 +602,11 @@
'invalid_auth' => InvalidAuth,
'invalid_blocks' => InvalidBlocks,
'invalid_call_id' => InvalidCallId,
'invalid_channel' => InvalidChannel,
'invalid_channel_id' => InvalidChannelId,
+ 'invalid_channel_type' => InvalidChannelType,
'invalid_channels_limit' => InvalidChannelsLimit,
'invalid_charset' => InvalidCharset,
'invalid_client_id' => InvalidClientId,
'invalid_code' => InvalidCode,
'invalid_created_by' => InvalidCreatedBy,
@@ -616,11 +614,10 @@
'invalid_date' => InvalidDate,
'invalid_duration' => InvalidDuration,
'invalid_email' => InvalidEmail,
'invalid_event_context' => InvalidEventContext,
'invalid_external_id' => InvalidExternalId,
- 'invalid_for_is_mpim' => InvalidForIsMpim,
'invalid_form_data' => InvalidFormData,
'invalid_grant_type' => InvalidGrantType,
'invalid_inputs' => InvalidInputs,
'invalid_limit' => InvalidLimit,
'invalid_name' => InvalidName,
@@ -668,16 +665,16 @@
'invitee_cant_see_channel' => InviteeCantSeeChannel,
'is_archived' => IsArchived,
'is_bot' => IsBot,
'is_inactive' => IsInactive,
'last_member' => LastMember,
- 'leaving_team_not_in_channel' => LeavingTeamNotInChannel,
- 'leaving_team_required' => LeavingTeamRequired,
'limit_required' => LimitRequired,
'link_not_found' => LinkNotFound,
'member_analytics_disabled' => MemberAnalyticsDisabled,
'message_not_found' => MessageNotFound,
+ 'metadata_not_available' => MetadataNotAvailable,
+ 'metadata_only_does_not_support_date' => MetadataOnlyDoesNotSupportDate,
'method_deprecated' => MethodDeprecated,
'method_not_supported_for_channel_type' => MethodNotSupportedForChannelType,
'migration_in_progress' => MigrationInProgress,
'missing_args' => MissingArgs,
'missing_argument' => MissingArgument,
@@ -712,17 +709,17 @@
'no_reaction' => NoReaction,
'no_resolution_found' => NoResolutionFound,
'no_scopes' => NoScopes,
'no_such_subteam' => NoSuchSubteam,
'no_team_ids_given' => NoTeamIdsGiven,
- 'no_teams_to_disconnect' => NoTeamsToDisconnect,
'no_text' => NoText,
'no_user' => NoUser,
'no_user_provided' => NoUserProvided,
'no_users_provided' => NoUsersProvided,
'not_admin' => NotAdmin,
'not_allowed' => NotAllowed,
+ 'not_allowed_for_grid_workspace' => NotAllowedForGridWorkspace,
'not_allowed_token_type' => NotAllowedTokenType,
'not_an_admin' => NotAnAdmin,
'not_an_enterprise' => NotAnEnterprise,
'not_app_admin' => NotAppAdmin,
'not_archived' => NotArchived,
@@ -734,17 +731,17 @@
'not_enterprise_team' => NotEnterpriseTeam,
'not_found' => NotFound,
'not_implemented' => NotImplemented,
'not_in_channel' => NotInChannel,
'not_in_dnd' => NotInDnd,
- 'not_in_group' => NotInGroup,
'not_pinnable' => NotPinnable,
'not_pinned' => NotPinned,
'not_reactable' => NotReactable,
'not_starred' => NotStarred,
'not_supported' => NotSupported,
'oauth_authorization_url_mismatch' => OauthAuthorizationUrlMismatch,
+ 'one_or_more_invalid_channels' => OneOrMoreInvalidChannels,
'org_level_email_display_disabled' => OrgLevelEmailDisplayDisabled,
'org_login_required' => OrgLoginRequired,
'org_not_found' => OrgNotFound,
'org_user_not_in_team' => OrgUserNotInTeam,
'over_pagination_limit' => OverPaginationLimit,
@@ -776,9 +773,10 @@
'sent_recently' => SentRecently,
'service_unavailable' => ServiceUnavailable,
'session_expired' => SessionExpired,
'session_invalidation_failed' => SessionInvalidationFailed,
'session_not_found' => SessionNotFound,
+ 'slack_connect_blocked_file_type' => SlackConnectBlockedFileType,
'slack_connect_file_link_sharing_blocked' => SlackConnectFileLinkSharingBlocked,
'slack_connect_file_upload_sharing_blocked' => SlackConnectFileUploadSharingBlocked,
'snooze_end_failed' => SnoozeEndFailed,
'snooze_failed' => SnoozeFailed,
'snooze_not_active' => SnoozeNotActive,