This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from aidenkeating/debug-flag
add overall debug flag to indicate debugging level
- Loading branch information
Showing
6 changed files
with
101 additions
and
17 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,33 @@ | ||
package sendgrid | ||
|
||
//AlreadyExistsError Error to indicate an API key already exists | ||
type AlreadyExistsError struct { | ||
Message string | ||
} | ||
|
||
//Error String representation of error | ||
func (e *AlreadyExistsError) Error() string { | ||
return e.Message | ||
} | ||
|
||
//IsAlreadyExistsError Compare check for AlreadyExistsError | ||
func IsAlreadyExistsError(err error) bool { | ||
_, ok := err.(*AlreadyExistsError) | ||
return ok | ||
} | ||
|
||
//NotExistError Error to indicate an API key does not exist | ||
type NotExistError struct { | ||
Message string | ||
} | ||
|
||
//Error String representation of error | ||
func (e *NotExistError) Error() string { | ||
return e.Message | ||
} | ||
|
||
//IsNotExistError Compare check for NotExistError | ||
func IsNotExistError(err error) bool { | ||
_, ok := err.(*NotExistError) | ||
return ok | ||
} |
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