error

package
v0.0.0-...-d88fcc9 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoCode       errorCode = "NO_CODE"
	ErrorPackage errorCode = "ERROR_PACKAGE"
	BashPackage  errorCode = "BASH_PACKAGE"
)

ToDo: amend and add more error codes

Variables

This section is empty.

Functions

This section is empty.

Types

type FactoryError

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

func NewFactoryError

func NewFactoryError(errCode errorCode, error string) FactoryError

func (FactoryError) Error

func (c FactoryError) Error() string

func (FactoryError) ErrorCode

func (c FactoryError) ErrorCode() errorCode

func (FactoryError) ErrorMessage

func (c FactoryError) ErrorMessage() string

func (FactoryError) ErrorString

func (c FactoryError) ErrorString() string

func (FactoryError) Exists

func (c FactoryError) Exists() bool

func (FactoryError) LoggingParams

func (c FactoryError) LoggingParams() map[string]interface{}

func (FactoryError) ToError

func (c FactoryError) ToError() error

func (FactoryError) ToString

func (c FactoryError) ToString() string

func (FactoryError) UserMessage

func (c FactoryError) UserMessage() string

func (FactoryError) WithParam

func (c FactoryError) WithParam(key string, val interface{}) FactoryError

WithParam value should not be a pointer

Jump to

Keyboard shortcuts

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