Skip to content

Define base error type and use stdlib error wrapping #1662

Description

@meatballhat

The stdlib error wrapping capability via fmt + %w allows for error wrapping as defined in the Go 2 error wrapping spec (citation needed) and as understood by the third-party errors package (and probably many others). The work to be done is:

  • define a const-ish "base" error type for errors that originate in this package
  • replace all runtime generated errors (errors.New) with error wrapping via fmt + %w

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/v3relates to / is being considered for v3kind/cleanupdescribes internal cleanup / maintaince

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions