Class: Slack::Web::Api::Errors::SlackError
- Inherits:
-
Faraday::Error
- Object
- Faraday::Error
- Slack::Web::Api::Errors::SlackError
- Defined in:
- lib/slack/web/api/errors/slack_error.rb
Direct Known Subclasses
Accesslimited, AccountInactive, AdminUnauthorized, AlreadyArchived, AlreadyInChannel, AlreadyInTeam, AlreadyInTeamInvitedUser, AlreadyInvited, AlreadyPinned, AlreadyProcessed, AlreadyReacted, AlreadyStarred, AppManagementAppNotInstalledOnOrg, AppMissingActionUrl, AppRestrictedOrgWide, AsUserNotSupported, AuthedUserNotFound, AutoProvisionFailure, BadClientSecret, BadHandle, BadImage, BadRedirectUri, BadTimestamp, BadTitle, BadToken, BadUrl, BadUsers, BarrierAlreadyExists, BarrierNotFound, BarrieredFromUsergroupsNotFound, BotNotFound, BotsNotAllowed, BotsNotFound, CannotAddBot, CannotAddMoreChannelsToGroup, CannotAddMoreGroupsToChannel, CannotAddOthers, CannotAddOthersRecurring, CannotAddSlackbot, CannotAuthUser, CannotCompleteOthers, CannotCompleteRecurring, CannotCreateDialog, CannotFindChannel, CannotFindMessage, CannotFindService, CannotInstallAnOrgInstalledApp, CannotInvalidatePrimaryOwner, CannotModifyPrimaryOwner, CannotMoveLocalChannel, CannotParse, CannotParseAttachment, CannotPrompt, CannotResetBot, CannotResetPrimaryOwner, CannotUnfurlMessage, CannotUnfurlUrl, CannotUpdateAdminUser, CantArchiveGeneral, CantDelete, CantDeleteFile, CantDeleteMessage, CantInvite, CantInviteSelf, CantKickFromGeneral, CantKickSelf, CantLeaveGeneral, CantUpdateMessage, ChannelCannotBeUnshared, ChannelIsNotPrivate, ChannelNotArchived, ChannelNotFound, ChannelTypeNotSupported, ClientIdTokenMismatch, CodeAlreadyUsed, ComplianceExportsPreventDeletion, CouldNotArchiveChannel, CouldNotConvertChannel, CouldNotCreateChannel, CouldNotCreateWorkspace, CouldNotDeleteChannel, CouldNotGetConversationPrefs, CouldNotGetRetention, CouldNotGetTeams, CouldNotRemoveRetention, CouldNotRenameChannel, CouldNotSetChannelPref, CouldNotSetRetention, CouldNotSetTeamsForChannel, CouldNotUnarchiveChannel, DataNotAvailable, DefaultChannelRestricted, DefaultOrgWideChannel, DeprecatedEndpoint, DescriptionTooLong, DiscoverabilitySettingInvalid, DomainTaken, DuplicateChannelNotFound, DuplicateExternalId, DuplicateMessageNotFound, EditWindowClosed, EkmAccessDenied, EmailTaken, EmojiLimitReached, EmojiNotFound, EnterpriseIsRestricted, EnterpriseNotFound, ErrorBadFormat, ErrorBadNameI18n, ErrorBadUpload, ErrorBadWide, ErrorInvalidAlias, ErrorInvalidEmojiToRename, ErrorMissingName, ErrorNameTaken, ErrorNameTakenI18n, ErrorNoImage, ErrorTooBig, ExternalChannelMigrating, ExternallySharedOrDisconnectedChannel, FailToGetTeamsForRestrictedUser, FailedForSomeUsers, FailedLookingUpUser, FailedSendingDialog, FailedToAddEmoji, FailedToAliasEmoji, FailedToFetchActiveTeam, FailedToFetchInfo, FailedToRemoveGroupUsers, FailedToRemoveUserFromWorkspace, FailedToRenameEmoji, FailedToSendInvite, FailedToSetDefaultChannels, FailedToSetDescription, FailedToSetDiscoverability, FailedToSetExpiration, FailedToSetIcon, FailedToSetName, FailedToSetUserToAdmin, FailedToSetUserToOwner, FailedToSetUserToRegular, FailedToUnlinkChannel, FailedToValidateCaller, FailedToValidateChannels, FailedToValidateCustomMessage, FailedToValidateExpiration, FailedToValidateTeam, FailureRemovingEmoji, FatalError, FeatureNotEnabled, FetchMembersFailed, FileCommentNotFound, FileDeleted, FileDeletingDisabled, FileNotFound, FileNotShared, FileNotYetAvailable, FileUnderReview, ForbiddenHandle, ForbiddenTeam, GroupAlreadyLinkedToChannel, GroupMustNotBeEmpty, GroupNotFound, HandleAlreadyExists, HashConflict, InactiveCall, InsecureRequest, InternalError, InvalidActor, InvalidAppId, InvalidArgName, InvalidArgs, InvalidArguments, InvalidArrayArg, InvalidAttachments, InvalidAuth, InvalidBlocks, InvalidCallId, InvalidChannel, InvalidChannelId, InvalidChannelType, InvalidChannelsLimit, InvalidCharset, InvalidClientId, InvalidCode, InvalidCreatedBy, InvalidCursor, InvalidDate, InvalidDuration, InvalidEmail, InvalidEventContext, InvalidExternalId, InvalidFormData, InvalidGrantType, InvalidInputs, InvalidLimit, InvalidName, InvalidNameMaxlength, InvalidNamePunctuation, InvalidNameRequired, InvalidNameSpecials, InvalidOutputs, InvalidPayload, InvalidPermissions, InvalidPostType, InvalidPresence, InvalidProfile, InvalidRequest, InvalidRequestId, InvalidRestrictedSubjects, InvalidRoleForUser, InvalidScheduledMessageId, InvalidScope, InvalidScopes, InvalidSearchChannelType, InvalidSort, InvalidSortDir, InvalidStartTime, InvalidStepStatus, InvalidTargetTeam, InvalidTeam, InvalidTeamIds, InvalidTime, InvalidTimestamp, InvalidToken, InvalidTrigger, InvalidTsLatest, InvalidTsOldest, InvalidType, InvalidTypes, InvalidUnfurlsFormat, InvalidUrl, InvalidUser, InvalidUserCombination, InvalidUserId, InvalidUsers, InvitedUserNotCreated, InvitedUserNotReactivated, InviteeCantSeeChannel, IsArchived, IsBot, IsInactive, LastMember, LimitRequired, LinkNotFound, MemberAnalyticsDisabled, MessageNotFound, MetadataNotAvailable, MetadataOnlyDoesNotSupportDate, MethodDeprecated, MethodNotSupportedForChannelType, MigrationInProgress, MissingArgs, MissingArgument, MissingChannel, MissingDialog, MissingDuration, MissingPostType, MissingResource, MissingScope, MissingSubteamName, MissingTeam, MissingTrigger, MissingTs, MissingUnfurls, MissingUser, MixedScope, MsgTooLong, MustProvideTeamDomain, MustProvideTeamName, NameAlreadyExists, NameTaken, NameTakenInOrg, NoActiveSessions, NoAliasSelected, NoBotUserForApp, NoChannel, NoImageUploaded, NoItemSpecified, NoLocalUserOnTeam, NoPermission, NoPin, NoReaction, NoResolutionFound, NoScopes, NoSuchSubteam, NoTeamIdsGiven, NoText, NoUser, NoUserProvided, NoUsersProvided, NotAdmin, NotAllowed, NotAllowedForGridWorkspace, NotAllowedTokenType, NotAnAdmin, NotAnEnterprise, NotAppAdmin, NotArchived, NotAuthed, NotAuthorized, NotBearerToken, NotEnabled, NotEnoughUsers, NotEnterpriseTeam, NotFound, NotImplemented, NotInChannel, NotInDnd, NotPinnable, NotPinned, NotReactable, NotStarred, NotSupported, OauthAuthorizationUrlMismatch, OneOrMoreInvalidChannels, OrgLevelEmailDisplayDisabled, OrgLoginRequired, OrgNotFound, OrgUserNotInTeam, OverPaginationLimit, PaginationNotAvailable, PaidOnly, PaidTeamsOnly, PermissionDenied, PlanUpgradeRequired, PostingToGeneralChannelDenied, PreviewFeatureNotAvailable, PrimaryUsergroupNotFound, ProfileSetFailed, PublicVideoNotAllowed, PushLimitReached, RateLimited, Ratelimited, RequestAlreadyResolved, RequestIdOrAppIdIsRequired, RequestIdRequiredForCustomIntegrations, RequestTimeout, ReservedName, ResizedButStillTooLarge, RestrictedAction, RestrictedActionNonThreadableChannel, RestrictedActionReadOnlyChannel, RestrictedActionThreadOnlyChannel, RetentionOverrideNotAllowed, RtmConnectRequired, SentRecently, ServiceUnavailable, SessionExpired, SessionInvalidationFailed, SessionNotFound, SlackConnectBlockedFileType, SlackConnectFileLinkSharingBlocked, SlackConnectFileUploadSharingBlocked, SnoozeEndFailed, SnoozeFailed, SnoozeNotActive, SubteamMaxUsersExceeded, TeamAccessNotGranted, TeamAddedToOrg, TeamIdOrOrgRequired, TeamNotFound, TeamNotOnEnterprise, ThreadNotFound, TimeInPast, TimeTooFar, TokenRevoked, TooLarge, TooLong, TooManyAttachments, TooManyConvosForAppOnTeam, TooManyConvosForTeam, TooManyEmoji, TooManyFrames, TooManyIds, TooManyIdsProvided, TooManyLinkedChannels, TooManyMembers, TooManyPins, TooManyReactions, TooManyTargetTeams, TooManyTeamsProvided, TooManyUsers, TriggerExchanged, TriggerExpired, TwoFactorSetupRequired, UnableToLeaveLastTeam, UnableToLinkIdpGroupAndChannel, UnableToUnlinkIdpGroupAndChannel, UnknownMethod, UnknownType, UnsupportedArguments, UnsupportedContextType, UnsupportedTeamType, UpdateFailed, UraMaxChannels, UserAlreadyDeleted, UserAlreadyTeamMember, UserDisabled, UserDoesNotOwnChannel, UserIsAlreadyDeleted, UserIsBot, UserIsNotAGuest, UserIsRestricted, UserIsUltraRestricted, UserMustBeAdmin, UserNotFound, UserNotInChannel, UserNotVisible, UserSessionResetFailed, UsergroupNotFound, UsergroupNotLinkedToTeam, UsergroupTeamNotProvisioned, UsersListNotSupplied, UsersNotFound, ValidationErrors, ViewTooLarge
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #error ⇒ Object
- #errors ⇒ Object
-
#initialize(message, response = nil) ⇒ SlackError
constructor
A new instance of SlackError.
- #response_metadata ⇒ Object
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(, response = nil) super @response = response end |
Instance Attribute Details
#response ⇒ Object (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
#error ⇒ Object
14 15 16 |
# File 'lib/slack/web/api/errors/slack_error.rb', line 14 def error response.body.error end |
#errors ⇒ Object
18 19 20 |
# File 'lib/slack/web/api/errors/slack_error.rb', line 18 def errors response.body.errors end |
#response_metadata ⇒ Object
22 23 24 |
# File 'lib/slack/web/api/errors/slack_error.rb', line 22 def response.body. end |