errors

package
v0.18.1-rc.2 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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