Class: Slack::Web::Api::Errors::SlackError

Inherits:
Faraday::Error
  • Object
show all
Defined in:
lib/slack/web/api/errors/slack_error.rb

Direct Known Subclasses

AccessDenied, AccessTokenExchangeFailed, Accesslimited, AccountInactive, ActionAlreadyInProgress, AdminUnauthorized, AlreadyApproved, AlreadyArchived, AlreadyInChannel, AlreadyInTeam, AlreadyInTeamInvitedUser, AlreadyInvited, AlreadyPinned, AlreadyProcessed, AlreadyReacted, AlreadyStarred, AltTxtTooLarge, AppManagementAppNotInstalledOnOrg, AppMissingActionUrl, AppNotEligible, AppNotFound, AppNotHosted, AppRestrictedOrgWide, ApprovalInactive, ApprovalNotFound, AsUserNotSupported, AtLeastOneSessionSettingRequired, AttachmentPayloadLimitExceeded, AuthMismatch, AuthorizationNotFound, AutoProvisionFailure, BadClientSecret, BadHandle, BadImage, BadRedirectUri, BadTimestamp, BadTitle, BadToken, BadUrl, BadUsers, BarrierAlreadyExists, BarrierNotFound, BarrieredFromUsergroupsNotFound, BlockMismatch, BlockedFileType, BotNotFound, BotUserRequired, BotsNotAllowed, BotsNotFound, CanNotUninstall, CannotAddBot, CannotAddLegacyDisconnectedChannelToWorkspaces, CannotAddMoreChannelsToGroup, CannotAddMoreGroupsToChannel, CannotAddOthers, CannotAddOthersRecurring, CannotAddProfileOnlyUser, CannotAddSlackbot, CannotAuthUser, CannotCompleteOthers, CannotCompleteRecurring, CannotCreateChannel, CannotCreateDialog, CannotFetchVersions, CannotFindChannel, CannotFindMessage, CannotFindService, CannotInstallAnOrgInstalledApp, CannotInvalidatePrimaryOwner, CannotKickHomeTeam, CannotKickTeam, CannotModifyPrimaryOwner, CannotMoveLocalChannel, CannotParse, CannotParseAttachment, CannotPrompt, CannotReplyToMessage, CannotResetBot, CannotResetPrimaryOwner, CannotResolveAlias, CannotSetThisGuestToRegularAtTeamLevel, CannotShareCrossWorkspaceChannel, CannotShareMandatoryChannel, CannotUnfurlMessage, CannotUnfurlUrl, CannotUpdateAdminUser, CantArchiveGeneral, CantArchiveRequired, CantBroadcastMessage, CantDelete, CantDeleteFile, CantDeleteMessage, CantInvite, CantInviteSelf, CantKickFromGeneral, CantKickSelf, CantLeaveGeneral, CantUpdateMessage, CanvasCreationFailed, CanvasDeleted, CanvasDeletingDisabled, CanvasDisabledFileTeam, CanvasDisabledUserTeam, CanvasEditingFailed, CanvasGloballyDisabled, CanvasNotFound, ChannelArchived, ChannelCannotBeUnshared, ChannelCanvasAlreadyExists, ChannelCanvasCreationFailed, ChannelCanvasDeleted, ChannelConversionInProgress, ChannelIsNotPrivate, ChannelMentionSyncRequired, ChannelNotArchived, ChannelNotFound, ChannelOwnerRestriction, ChannelTypeNotSupported, ClientIdTokenMismatch, CodeAlreadyUsed, ConnectedOrgDenied, ConnectedTeamDenied, ConnectedTeamPassedInIsNotTopLevelTeam, ConnectedUserDenied, ConnectionLimitExceeded, ConnectionLimitExceededPending, CouldNotArchiveChannel, CouldNotConvertChannel, CouldNotCreateChannel, CouldNotCreateWorkspace, CouldNotDeleteChannel, CouldNotExport, CouldNotGetConversationPrefs, CouldNotGetRetention, CouldNotGetTeams, CouldNotRemoveRetention, CouldNotRenameChannel, CouldNotSetChannelPref, CouldNotSetRetention, CouldNotSetTeamsForChannel, CouldNotUnarchiveChannel, CustomIntegrationNotAllowedAtEnterprise, DataNotAvailable, DatastoreError, DatastoreMigrationInProgress, DefaultChannelRestricted, DefaultOrgWideChannel, DeleteNotAllowed, DeprecatedEndpoint, DescriptionTooLong, DiscoverabilitySettingInvalid, DomainTaken, DuplicateChannelNotFound, DuplicateExternalId, DuplicateMessageNotFound, EditWindowClosed, EkmAccessDenied, EmailDoesNotMatch, EmailNotVerified, EmailTaken, EmojiLimitReached, EmojiNotFound, EndpointUnavailable, EnterpriseIsRestricted, EnterpriseNotFound, EntityNotFound, ErrorAddingCollaborators, ErrorBadFormat, ErrorBadNameI18n, ErrorBadUpload, ErrorBadWide, ErrorInvalidAlias, ErrorInvalidEmojiToRename, ErrorMissingName, ErrorNameTaken, ErrorNameTakenI18n, ErrorNoImage, ErrorRemovingCollaborators, ErrorTooBig, ErrorUnpublishingWorkflows, ExchangedTriggerId, ExecutionNotInRunningState, ExpiredTriggerId, ExternalChannelMigrating, ExternalLimitedRestriction, ExternalTeamNotConnectedToThisOrg, ExternalWorkspaceDenied, ExternallySharedOrDisconnectedChannel, FailToGetTeamsForRestrictedUser, FailedAddingCollaborator, FailedCreatingApp, FailedDatastoreOperation, FailedExport, FailedForSomeEntities, FailedForSomeUsers, FailedForSomeUsersAndEntities, FailedLookingUpUser, FailedSendingDialog, FailedToAddEmoji, FailedToAliasEmoji, FailedToFetchActiveTeam, FailedToFetchInfo, FailedToRemoveGroupUsers, FailedToRemoveUserFromWorkspace, FailedToRenameEmoji, FailedToSendInvite, FailedToSetDefaultChannels, FailedToSetDescription, FailedToSetDiscoverability, FailedToSetExpiration, FailedToSetIcon, FailedToSetName, FailedToSetUserToAdmin, FailedToSetUserToOwner, FailedToSetUserToRegular, FailedToStartTrial, FailedToUnlinkChannel, FailedToUnshare, FailedToValidateCaller, FailedToValidateChannels, FailedToValidateCustomMessage, FailedToValidateExpiration, FailedToValidateTeam, FailureRemovingEmoji, FatalError, FeatureNotAvailable, FeatureNotEnabled, FetchMembersFailed, FileCommentNotFound, FileDeleted, FileDeletingDisabled, FileNotFound, FileNotShared, FileNotYetAvailable, FileUnderReview, FileUpdateFailed, FileUploadSizeRestricted, FileUploadsDisabled, ForbiddenHandle, ForbiddenTeam, FreeTeamNotAllowed, FreeTeamsCannotCreateStandaloneCanvases, FreeTeamsCannotEditStandaloneCanvases, FunctionExecutionNotFound, FunctionNotFound, GroupAlreadyLinkedToChannel, GroupMustNotBeEmpty, GroupNotFound, HandleAlreadyExists, HasAlreadyConnectedToOrg, HashConflict, InactiveCall, InactiveInvite, IncludeDeactivatedUserWorkspacesInvalid, InsecureRequest, InternalError, InvalidAction, InvalidActor, InvalidApp, InvalidAppId, InvalidArgName, InvalidArgs, InvalidArguments, InvalidArrayArg, InvalidAttachments, InvalidAuth, InvalidBlocks, InvalidBlocksFormat, InvalidBookmarkType, InvalidCallId, InvalidChannel, InvalidChannelId, InvalidChannelProvided, InvalidChannelType, InvalidChannelsLimit, InvalidCharset, InvalidChildType, InvalidClientId, InvalidCode, InvalidCreatedBy, InvalidCursor, InvalidDatastore, InvalidDate, InvalidDomains, InvalidDuration, InvalidEmail, InvalidEmoji, InvalidEmojiNotAllowed, InvalidEnterprise, InvalidEntityId, InvalidEventContext, InvalidExternalId, InvalidFieldOrData, InvalidFormData, InvalidGrantType, InvalidGroupProvided, InvalidHostTeam, InvalidInputs, InvalidLimit, InvalidLink, InvalidManifest, InvalidMetadataFilterKeys, InvalidMetadataFormat, InvalidMetadataSchema, InvalidName, InvalidNameMaxlength, InvalidNamePunctuation, InvalidNameRequired, InvalidNameSpecials, InvalidNamedEntities, InvalidOutputs, InvalidParameters, InvalidParentType, InvalidPayload, InvalidPermissionType, InvalidPermissions, InvalidPostType, InvalidPresence, InvalidPrivacy, InvalidProfile, InvalidRecipientTeam, InvalidRefreshToken, InvalidRequest, InvalidRequestId, InvalidRestrictedSubjects, InvalidRoleForUser, InvalidRoleId, InvalidScheduledMessageId, InvalidScopes, InvalidSearchChannelType, InvalidSetting, InvalidSort, InvalidSortDir, InvalidSource, InvalidStartTime, InvalidStepStatus, InvalidTargetTeam, InvalidTeam, InvalidTeamId, InvalidTeamIds, InvalidThreadTs, InvalidTime, InvalidTimestamp, InvalidTitle, InvalidToken, InvalidTrigger, InvalidTriggerId, InvalidTsLatest, InvalidTsOldest, InvalidType, InvalidTypes, InvalidUnfurlId, InvalidUnfurlsFormat, InvalidUrl, InvalidUser, InvalidUserCombination, InvalidUserId, InvalidUsers, InvalidValue, InvalidVisibility, InvalidWorkflowAuthStrategy, InvalidWorkspaceFilter, InviteFromSameOrg, InviteLookupError, InviteNotFound, InviteUsed, InvitedUserNotCreated, InvitedUserNotReactivated, InviteeCantSeeChannel, InvitorCannotSeeChannel, IsArchived, IsBot, IsIdpManaged, IsInactive, IsPendingConnectedToOrg, LastMember, LeavingTeamNotInChannel, LeavingTeamRequired, LegacyConnectionInvalidOrg, LegacyConnectionLimitExceeded, LimitRequired, LinkNotFound, MalwareDetected, ManagedChannelNotSupported, MemberAnalyticsDisabled, MemberLimitExceeded, MessageLimitExceeded, MessageNotFound, MessageTooLong, MessagesTabDisabled, MetadataMustBeSentFromApp, MetadataNotAvailable, MetadataOnlyDoesNotSupportDate, MetadataTooLarge, MethodDeprecated, MethodNotSupported, MethodNotSupportedForChannelType, MigrationInProgress, MissingArgs, MissingArgument, MissingChannel, MissingDialog, MissingDuration, MissingFileData, MissingPostType, MissingProfileId, MissingResource, MissingScope, MissingSource, MissingStepIds, MissingSubteamName, MissingTargetTeam, MissingTeam, MissingTrigger, MissingTs, MissingUnfurlId, MissingUnfurls, MissingUser, MsgBlocksTooLong, MsgTooLong, MustClearBothStatusTextAndStatusEmoji, MustProvideTeamDomain, MustProvideTeamName, MustRevokeAccess, NameAlreadyExists, NameNotAllowed, NameTaken, NameTakenInOrg, NameTooLong, NamedEntitiesCannotBeEmpty, NoActiveSessions, NoAliasSelected, NoBotUserForApp, NoChannel, NoChannelMemberships, NoDomainsProvided, NoDualBroadcastContentUpdate, NoExternalInvitePermission, NoImageUploaded, NoItemSpecified, NoLocalUserOnTeam, NoPermission, NoPin, NoReaction, NoRefreshToken, NoResolutionFound, NoScopes, NoSuchSubteam, NoTeamIdsGiven, NoTeamsToDisconnect, NoText, NoTokensFound, NoUser, NoUsersProvided, NoValidChannels, NoValidEntities, NoValidNamedEntities, NoValidTeams, NoValidUsers, NotAdmin, NotAllowed, NotAllowedForGridWorkspace, NotAllowedTokenType, NotAnAdmin, NotAnEnterprise, NotAppAdmin, NotArchived, NotAuthed, NotAuthorized, NotBearerToken, NotEnabled, NotEnoughUsers, NotEnterpriseTeam, NotFound, NotImplemented, NotInChannel, NotInDnd, NotOwner, NotPaid, NotPinnable, NotPinned, NotReactable, NotStarred, NotSupported, NotVisible, OauthAuthorizationUrlMismatch, OneOrMoreInvalidChannels, OrgLevelEmailDisplayDisabled, OrgLoginRequired, OrgNotConnected, OrgNotFound, OrgResolutionRequired, OrgUserNotInTeam, OverMaxEntityLimit, OverPaginationLimit, PaginationNotAvailable, PaidOnly, PaidTeamsOnly, ParameterValidationFailed, ParentBookmarkDisabled, ParentWithLink, PartialFailure, PartialProfileSetFailed, PermissionDenied, PermissionTypeRequired, PlanUpgradeRequired, PolicyNotFound, PostContentsTooLarge, PostingToChannelDenied, PostingToGeneralChannelDenied, PreviewFeatureNotAvailable, PrimaryUsergroupNotFound, ProfileSetFailed, ProvidersNotFound, PublicVideoNotAllowed, PublishedAppOnly, PushLimitReached, RateLimited, Ratelimit, Ratelimited, RecipientsNotSpecified, RequestAlreadyResolved, RequestIdOrAppIdIsRequired, RequestIdRequiredForCustomIntegrations, RequestTimeout, ReservedName, ResizedButStillTooLarge, RestrictedAction, RestrictedActionNonThreadableChannel, RestrictedActionReadOnlyChannel, RestrictedActionThreadLocked, RestrictedActionThreadOnlyChannel, RestrictedTooMany, RetentionOverrideNotAllowed, SentRecently, ServiceUnavailable, SessionExpired, SessionInvalidationFailed, SessionNotFound, SessionResetNotAllowed, SharedChannelDenied, SlackConnectBlockedFileType, SlackConnectCanvasSharingBlocked, SlackConnectClipSharingBlocked, SlackConnectFileLinkSharingBlocked, SlackConnectFileUploadSharingBlocked, SlackConnectListsSharingBlocked, SnippetTooLarge, SnoozeEndFailed, SnoozeFailed, SpecifyEnterpriseOrTeams, StorageLimitReached, SubteamMaxUsersExceeded, SudoRequired, TargetTeamMustBeSpecifiedInOrgContext, TargetTeamNotFound, TargetTeamNotOnOrg, TeamAccessNotGranted, TeamAddedToOrg, TeamIdOrOrgRequired, TeamIdRequiredForEnterprise, TeamNotConnected, TeamNotFound, TeamNotOnEnterprise, TeamQuotaExceeded, TeamsNotFound, TemplateNotVisible, ThreadLocked, ThreadNotFound, TimeInPast, TimeTooFar, TokenAlreadyExchanged, TokenExpired, TokenNotFound, TokenRevoked, TokenRotationNotEnabled, TooLarge, TooLong, TooManyAttachments, TooManyBookmarks, TooManyContactCards, TooManyDomainsProvided, TooManyEmails, TooManyEmoji, TooManyEntities, TooManyFrames, TooManyIds, TooManyIdsProvided, TooManyLinkedChannels, TooManyMembers, TooManyNamedEntities, TooManyPins, TooManyReactions, TooManyTargetTeams, TooManyTeams, TooManyTeamsProvided, TooManyUsers, TriggerExchanged, TriggerExpired, TriggerNotFound, TriggerTypeIdNotFound, TwoFactorSetupRequired, UnableToDelete, UnableToFetchCustomEmojis, UnableToLinkIdpGroupAndChannel, UnableToProcessPostRequest, UnableToUnlinkIdpGroupAndChannel, UnableToUpdateExistingSessions, UnknownAppId, UnknownError, UnknownFunctionId, UnknownMethod, UnknownSnippetType, UnknownStepId, UnknownSubtype, UnknownType, UnknownWorkflowId, UnsupportedActionDescribe, UnsupportedActionPut, UnsupportedArguments, UnsupportedContextType, UnsupportedTeamType, UpdateFailed, UraMaxChannels, UrlInMessage, UrlRestrictionNotSupported, UserAlreadyDeleted, UserAlreadyTeamMember, UserCannotCreateChannel, UserCannotManageWorkspace, UserDisabled, UserDoesNotOwnChannel, UserIsAlreadyDeleted, UserIsBot, UserIsNotAGuest, UserIsRestricted, UserIsUltraRestricted, UserMustBeAdmin, UserMustBeInWorkspace, UserNotFound, UserNotInChannel, UserNotVisible, UserRequiredToAcceptAsPrivateButCannot, UserSessionResetFailed, UsergroupNotFound, UsergroupNotLinkedToTeam, UsergroupTeamNotProvisioned, UsersListNotSupplied, UsersNotFound, ValidationErrors, ViewTooLarge, VisibilityIsNotNamedEntities, WorkflowsExportCsvNotEnabled

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response = nil) ⇒ SlackError

Returns a new instance of SlackError.



9
10
11
12
# File 'lib/slack/web/api/errors/slack_error.rb', line 9

def initialize(message, response = nil)
  super message
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/slack/web/api/errors/slack_error.rb', line 7

def response
  @response
end

Instance Method Details

#errorObject



14
15
16
# File 'lib/slack/web/api/errors/slack_error.rb', line 14

def error
  response.body.error
end

#errorsObject



18
19
20
# File 'lib/slack/web/api/errors/slack_error.rb', line 18

def errors
  response.body.errors
end

#response_metadataObject



22
23
24
# File 'lib/slack/web/api/errors/slack_error.rb', line 22

def 
  response.body.
end