Skip to content

Releases: pingcap/errors

v0.11.4

Choose a tag to compare

@lysu lysu released this 15 May 08:52

suspend traced error support

v0.11.3

Choose a tag to compare

@lysu lysu released this 15 May 05:57
d95478c

add SuspendStack support

v0.11.2

Choose a tag to compare

@lysu lysu released this 15 May 05:37

add NewNoStackError support

v0.11.1

Choose a tag to compare

@lysu lysu released this 18 Mar 09:37
8abfc13
  • improve errors.Trace performance

0.10.0

Choose a tag to compare

@gregwebs gregwebs released this 11 Sep 15:50
0c849bc
  • multi errors: Add an Errors() utility function
  • stack traces: reduce allocations

pingcap/errors v0.9.0

Choose a tag to compare

@lysu lysu released this 08 Sep 08:53
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