| 1 |
package slack |
| 2 |
|
| 3 |
import "errors" |
| 4 |
|
| 5 |
// ErrInvalidToken is returned when the specified token does not match any known formats. |
| 6 |
var ErrInvalidToken = errors.New("invalid slack token format") |
| 7 |
|
| 8 |
// ErrMismatchedTokenSeparators is returned if the token uses different separators between parts (of the recognized `/-,`). |
| 9 |
var ErrMismatchedTokenSeparators = errors.New("invalid webhook token format") |
| 10 |
|
| 11 |
// ErrAPIResponseFailure indicates a failure in the Slack API response. |
| 12 |
var ErrAPIResponseFailure = errors.New("api response failure") |
| 13 |
|
| 14 |
// ErrUnknownAPIError indicates an unknown error from the Slack API. |
| 15 |
var ErrUnknownAPIError = errors.New("unknown error from Slack API") |
| 16 |
|
| 17 |
// ErrWebhookStatusFailure indicates a failure due to an unexpected webhook status code. |
| 18 |
var ErrWebhookStatusFailure = errors.New("webhook status failure") |
| 19 |
|
| 20 |
// ErrWebhookResponseFailure indicates a failure in the webhook response content. |
| 21 |
var ErrWebhookResponseFailure = errors.New("webhook response failure") |