-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
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
errors: update documentation #598
Conversation
- make `successABCICode` public variable - update documentation resolve #494
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor changes requested. Looks good.
errors/doc.go
Outdated
Error declarations should be generic and cover broad range of cases. Each | ||
returned error instance can wrap a generic error declaration to provide more | ||
details. | ||
Unless an error is very specific for an extension (ie ErrInvalidSequence in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Unless/If/
(as it reads, it seems opposite to what you intended)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And maybe a line before suggesting to use the generic errors registered in this module if possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 5496a17
} | ||
|
||
The first time an error instance is wrapped a stacktrace is attached as well. | ||
Stacktrace information can be printed using %+v and %v formats. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think nice to include this info (unless no longer valid). Possibly formatted differently
%+v is the full stack trace
%v appends a compressed [filename:line] where the error was created
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 5496a17
51edc25
to
5496a17
Compare
successABCICode
public variableresolve #494