You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default error interface is simple Error() string, however, it is too general and makes error handling non trivial, user have to rely on inspect string/type assertion/compare with global variable. Some use cases
error code, might just add ErrorCode to the general interface and give code to common std library errors
[error] Human readable suggestions for possible solutions #73 solution, some errors are simple but common, might just write the solution there, just like when you do brew install it will suggest you run certain command when there are certain errors.
error tracking system like sentry, I remember I have a survey/issue for those stuff somewhere
a generic http retry client, not all error are retryable, i.e. a 500 could also contains a valid response for application specific error, it would be good to have a ShouldRetry
The default error interface is simple
Error() string
, however, it is too general and makes error handling non trivial, user have to rely on inspect string/type assertion/compare with global variable. Some use casesErrorCode
to the general interface and give code to common std library errorsWrap
brew install
it will suggest you run certain command when there are certain errors.a generic http retry client, not all error are retryable, i.e. a 500 could also contains a valid response for application specific error, it would be good to have aShouldRetry
Related
check(_ interface{}, err error)
The text was updated successfully, but these errors were encountered: