errors

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Code

func Code(e error) codes.Code

Code - returns a nitric api error code from an error or Unknown if the error was not a nitric api error

Types

type ErrorFactory added in v0.12.0

type ErrorFactory = func(c codes.Code, msg string, cause error) error

func ErrorsWithScope

func ErrorsWithScope(scope string, args map[string]interface{}) ErrorFactory

ErrorsWithScope - Returns a new reusable error factory with the given scope

type PluginError

type PluginError struct {
	Code   codes.Code
	Msg    string
	Cause  error
	Plugin string
	Args   map[string]interface{}
}

func (*PluginError) Error

func (p *PluginError) Error() string

func (*PluginError) Unwrap

func (p *PluginError) Unwrap() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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