Skip to content

pingcap/errors v0.9.0

Compare
Choose a tag to compare
@lysu lysu released this 08 Sep 08:53
· 53 commits to master since this release
9316aeb

This maintains backwards compatibility with v0.8.0. It does fix a bug where Cause() could return nil.

  • add compatability adaptor methods from juju/errors
  • stack traces
    • Only create one stack trace. Use the new functions AddStack and Annotate/Annotatef, which only adds a stack if there is not one already
    • add NewStack() function for generating a stack trace
    • GetStackTacer() and HasStack() helpers are exported
    • The StackTracer interface is exported
  • Multi errors
    • WalkDeep: traverse an error chain with support the Errors() interface for multi errors
    • export an ErrorGroup interface