pkgerrors

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2018 License: BSD-2-Clause, MIT Imports: 2 Imported by: 0

Documentation

Overview

Package pkgerrors provides adapters for errors generated by the github.com/pkg/errors package.

Importing this package installs the github.com/pkg/errors adapter on the global set of adapters of the parent errors-go package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adapt

func Adapt(err error) (error, bool)

Adapt adapts err if it was generated by the github.com/pkg/errors package.

Note that most error types for github.com/pkg/errors are compatible with the design of the errors-go package without needing to be modified. The only case where the error is actually changed is for errors with stack traces, because the StackTrace types are concrete types exposed by each package, and even if they are very similar they cannot be implicitly converted by the Go compiler.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL