| 1 | package mattermost |
| 2 | |
| 3 | import "errors" |
| 4 | |
| 5 | // ErrorMessage represents error events within the Mattermost service. |
| 6 | type ErrorMessage string |
| 7 | |
| 8 | // ErrSendFailed indicates that the notification failed due to an unexpected response status code. |
| 9 | var ErrSendFailed = errors.New( |
| 10 | "failed to send notification to service, response status code unexpected", |
| 11 | ) |
| 12 | |
| 13 | // ErrInvalidURL indicates that the provided URL is invalid. |
| 14 | var ErrInvalidURL = errors.New("invalid URL: scheme must be http or https and host must be present") |
| 15 | |
| 16 | // ErrNotEnoughArguments indicates that the API URL does not include enough arguments. |
| 17 | var ErrNotEnoughArguments = errors.New( |
| 18 | "the apiURL does not include enough arguments, either provide 1 or 3 arguments (they may be empty)", |
| 19 | ) |