error

package
v0.0.0-...-cf2fde9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppError

type AppError struct {
	Code    int
	Message string
	Cause   error
	Action  string
}

func (*AppError) Error

func (ae *AppError) Error() string

type DefinedErrors

type DefinedErrors struct {
	// Name   string `yaml:name`
	// Detail Detail `yaml:detail`
	Errors map[string]Detail `yaml:"errors,omitempty"`
}

func (*DefinedErrors) Load

func (de *DefinedErrors) Load() error

type Detail

type Detail struct {
	Code      int    `yaml:"code"`
	Action    string `yaml:"action,omitempty"`
	Transient bool   `yaml:"transient"`
}

type TransientError

type TransientError struct {
	Code       int
	Message    string
	Cause      error
	RetryCount int
}

func (*TransientError) Error

func (te *TransientError) Error() string

Jump to

Keyboard shortcuts

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