-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: err typing for better client assertion (#15)
- Loading branch information
1 parent
042c33e
commit a770741
Showing
3 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package resend | ||
|
||
import "errors" | ||
|
||
// ApiKeySvc errors | ||
var ( | ||
ErrFailedToCreateApiKeysCreateRequest = errors.New("[ERROR]: Failed to create ApiKeys.Create request") | ||
ErrFailedToCreateApiKeysListRequest = errors.New("[ERROR]: Failed to create ApiKeys.List request") | ||
ErrFailedToCreateApiKeysRemoveRequest = errors.New("[ERROR]: Failed to create ApiKeys.Remove request") | ||
) | ||
|
||
// EmailsSvc errors | ||
|
||
var ( | ||
ErrFailedToCreateEmailsSendRequest = errors.New("[ERROR]: Failed to create SendEmail request") | ||
ErrFailedToCreateEmailsGetRequest = errors.New("[ERROR]: Failed to create GetEmail request") | ||
) |