| 1 |
package twilio |
| 2 |
|
| 3 |
import "errors" |
| 4 |
|
| 5 |
// Error definitions for the Twilio service. |
| 6 |
var ( |
| 7 |
// ErrSendFailed indicates a failure in sending the SMS via Twilio. |
| 8 |
ErrSendFailed = errors.New("failed to send SMS via Twilio") |
| 9 |
) |
| 10 |
|
| 11 |
// Static errors for configuration validation. |
| 12 |
var ( |
| 13 |
ErrAccountSIDMissing = errors.New("account SID missing from config URL") |
| 14 |
ErrAuthTokenMissing = errors.New("auth token missing from config URL") |
| 15 |
ErrFromNumberMissing = errors.New( |
| 16 |
"from number or messaging service SID missing from config URL", |
| 17 |
) |
| 18 |
ErrToFromNumberSame = errors.New("to and from phone numbers must not be the same") |
| 19 |
ErrToNumbersMissing = errors.New("recipient phone number(s) missing from config URL") |
| 20 |
) |