golang

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewError

func NewError(err error) errawr.Error

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func (Error) ArgumentDescription

func (e Error) ArgumentDescription(name string) string

func (Error) Arguments

func (e Error) Arguments() map[string]interface{}

func (Error) Bug

func (e Error) Bug() errawr.Error

func (Error) Causes

func (e Error) Causes() []errawr.Error

func (Error) Code

func (e Error) Code() string

func (Error) Description

func (Error) Description() errawr.ErrorDescription

func (Error) Domain

func (Error) Domain() errawr.ErrorDomain

func (Error) Error

func (e Error) Error() string

func (Error) FormattedDescription

func (e Error) FormattedDescription() errawr.ErrorDescription

func (Error) ID

func (e Error) ID() string

func (Error) Is

func (e Error) Is(id string) bool

func (*Error) IsBug

func (e *Error) IsBug() bool

func (Error) Items

func (e Error) Items() (map[string]errawr.Error, bool)

func (Error) Metadata

func (Error) Metadata() errawr.Metadata

func (Error) Section

func (Error) Section() errawr.ErrorSection

func (Error) Sensitivity

func (e Error) Sensitivity() errawr.ErrorSensitivity

func (Error) Title

func (e Error) Title() string

func (Error) WithCause

func (e Error) WithCause(cause error) errawr.Error

func (Error) WithSensitivity

func (e Error) WithSensitivity(sensitivity errawr.ErrorSensitivity) errawr.Error

type ErrorDomain

type ErrorDomain struct{}

func (ErrorDomain) Is

func (ed ErrorDomain) Is(key string) bool

func (ErrorDomain) Key

func (ErrorDomain) Key() string

func (ErrorDomain) Title

func (ErrorDomain) Title() string

type ErrorMetadata

type ErrorMetadata struct{}

func (ErrorMetadata) HTTP

type ErrorSection

type ErrorSection struct{}

func (ErrorSection) Is

func (es ErrorSection) Is(key string) bool

func (ErrorSection) Key

func (ErrorSection) Key() string

func (ErrorSection) Title

func (ErrorSection) Title() string

type FormattedErrorDescription

type FormattedErrorDescription struct {
	// contains filtered or unexported fields
}

func (FormattedErrorDescription) Friendly

func (fed FormattedErrorDescription) Friendly() string

func (FormattedErrorDescription) Technical

func (fed FormattedErrorDescription) Technical() string

type UnformattedErrorDescription

type UnformattedErrorDescription struct{}

func (UnformattedErrorDescription) Friendly

func (UnformattedErrorDescription) Technical

func (UnformattedErrorDescription) Technical() string

Jump to

Keyboard shortcuts

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