| 1 | package slack |
| 2 | |
| 3 | import "github.com/slack-go/slack/internal/errorsx" |
| 4 | |
| 5 | // Errors returned by various methods. |
| 6 | const ( |
| 7 | ErrAlreadyDisconnected = errorsx.String("Invalid call to Disconnect - Slack API is already disconnected") |
| 8 | ErrRTMDisconnected = errorsx.String("disconnect received while trying to connect") |
| 9 | ErrRTMGoodbye = errorsx.String("goodbye detected") |
| 10 | ErrRTMDeadman = errorsx.String("deadman switch triggered") |
| 11 | ErrParametersMissing = errorsx.String("received empty parameters") |
| 12 | ErrBlockIDNotUnique = errorsx.String("Block ID needs to be unique") |
| 13 | ErrInvalidConfiguration = errorsx.String("invalid configuration") |
| 14 | ErrMissingHeaders = errorsx.String("missing headers") |
| 15 | ErrExpiredTimestamp = errorsx.String("timestamp is too old") |
| 16 | ) |
| 17 | |
| 18 | // internal errors |
| 19 | const ( |
| 20 | errPaginationComplete = errorsx.String("pagination complete") |
| 21 | ) |