Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWrappedError ¶
NewWrappedError returns a new wrapped error
Example ¶
package main import ( "fmt" keelerrors "github.com/foomo/keel/errors" "github.com/pkg/errors" ) func main() { parentErr := errors.New("parent") childErr := errors.New("child") wrappedErr := keelerrors.NewWrappedError(parentErr, childErr) fmt.Println(parentErr) fmt.Println(childErr) fmt.Println(wrappedErr) }
Output: parent child parent: child
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.