errors

package
v0.16.0-rc.19 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

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

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