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
Wrap an error and inherit the error message from another one:
// Lengthy werror.Wrap(googlecode.ErrInvalidArgument).SetError(err) // Simplified werror.Wrap(gcode.ErrInvalidArgument, err)
Wrap an error and set a custom error message:
// Lengthy werror.Wrap(googlecode.ErrInvalidArgument).SetErrorf("bad request") // Simplified werror.Wrapf(gcode.ErrInvalidArgument, "bad request")
The text was updated successfully, but these errors were encountered:
2be7a9a
No branches or pull requests
Wrap an error and inherit the error message from another one:
Wrap an error and set a custom error message:
The text was updated successfully, but these errors were encountered: