Skip to content

Releases: pingcap/errors

v0.11.4

15 May 08:52
Compare
Choose a tag to compare

suspend traced error support

v0.11.3

15 May 05:57
d95478c
Compare
Choose a tag to compare

add SuspendStack support

v0.11.2

15 May 05:37
Compare
Choose a tag to compare

add NewNoStackError support

v0.11.1

18 Mar 09:37
8abfc13
Compare
Choose a tag to compare
  • improve errors.Trace performance

0.10.0

11 Sep 15:50
0c849bc
Compare
Choose a tag to compare
  • multi errors: Add an Errors() utility function
  • stack traces: reduce allocations

pingcap/errors v0.9.0

08 Sep 08:53
9316aeb
Compare
Choose a tag to compare

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