Documentation ¶
Overview ¶
Package errors provides an Error interface that includes the component name with the underlying error.
Index ¶
Constants ¶
View Source
const DefaultComp = "web test launcher"
DefaultComp is the default component name used when no other component specified.
Variables ¶
This section is empty.
Functions ¶
func Component ¶
Component returns err.Component() if err implements it, otherwise it returns DefaultComp. Component is intended for grouping error messages by source.
func IsPermanent ¶
IsPermanent returns err.Permanent() if err implements it, otherwise it returns false. IsPermanent is intended for preventing retries when errors occur that are unlikely to go away.
func New ¶
New returns an error, e, such that:
Permanent(e) is false If Component(err) is not DefaultComp, Component(e) is Component(err) Else If component is "", Component(e) is DefaultComp Else Component(e) is component.
func NewPermanent ¶
NewPermanent returns an error, e, such that:
Permanent(e) is true If Component(err) is not DefaultComp, Component(e) is Component(err) Else If component is "", Component(e) is DefaultComp Else Component(e) is component.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.