| 1 |
package teams |
| 2 |
|
| 3 |
import "errors" |
| 4 |
|
| 5 |
// Error variables for the Teams package. |
| 6 |
var ( |
| 7 |
// ErrMissingHost indicates the host webhook URL is not specified in the configuration. |
| 8 |
ErrMissingHost = errors.New("host is required but not specified in the configuration") |
| 9 |
|
| 10 |
// ErrSendFailed indicates a general failure in sending the notification. |
| 11 |
ErrSendFailed = errors.New("an error occurred while sending notification to teams") |
| 12 |
|
| 13 |
// ErrSendFailedStatus indicates an unexpected status code in the response. |
| 14 |
ErrSendFailedStatus = errors.New( |
| 15 |
"failed to send notification to teams, response status code unexpected", |
| 16 |
) |
| 17 |
|
| 18 |
// ErrInvalidWebhookURL indicates the webhook URL format is invalid. |
| 19 |
ErrInvalidWebhookURL = errors.New("invalid webhook URL format") |
| 20 |
) |