rerrors

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error interface {
	// Returns Error Code Value
	Code() int64
	// Returns Error Category Type
	Type() ErrorType
	// Returns thrown error interface
	Error() error
}

Interface that describe a cross application error

func New

func New(err error, code int64, errType ErrorType) Error

type ErrorType

type ErrorType int
const (
	UndefinedType    ErrorType = 0
	GenericErrorType ErrorType = iota + 1
	DnsMessageErrorType
	DnsProcessingErrorType
	RestMessageErrorType
	RestProcessingErrorType
	StoreLoadErrorType
	StoreSaveErrorType
	StoreCreateErrorType
	StoreProcessErrorType
	ConfigLoadErrorType
)

Jump to

Keyboard shortcuts

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