We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some errors in errors.go are just instances of errors, and not custom types that implement the error interface.
Tests for errors such as ErrNotFound can not directly be done without searching for error content.
ErrNotFound
errors.As() allows you to test if a GoGM error is a specific type, such as a ErrNotFound, ErrConnection, etc..
errors.As()
ErrConnection
Many errors do not implement the error
Correctly implement custom errors
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report:
Some errors in errors.go are just instances of errors, and not custom types that implement the error interface.
Tests for errors such as
ErrNotFound
can not directly be done without searching for error content.Expected Behavior
errors.As()
allows you to test if a GoGM error is a specific type, such as aErrNotFound
,ErrConnection
, etc..Current Behavior
Many errors do not implement the error
Possible Solution
Correctly implement custom errors
The text was updated successfully, but these errors were encountered: