errors

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: AGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const ApplicationError = 3000

ApplicationError error group indicates application related errors. Starting with error code 3xxx.

View Source
const CLIError = 2000

CLIError error group indicates command related errors. Starting with error code 2xxx.

View Source
const ErrBadURL = 3003

ErrBadURL indicates that given url string can not be parsed.

View Source
const ErrConflictingDemands = 3006

ErrConflictingDemands indicates that users demands are conflicting with each other.

View Source
const ErrEmptyValue = 3004

ErrEmptyValue indicates that given value is empty.

View Source
const ErrInvalidPort = 3009

ErrInvalidPort indicates that given value is not a valid port number.

View Source
const ErrMustBeLoopbackURL = 3002

ErrMustBeLoopbackURL indicates that given url does not resolv to a known looback ip addr.

View Source
const ErrNotCIDR = 3008

ErrNotCIDR indicates that given value is not a CIDR.

View Source
const ErrNotHostname = 3007

ErrNotHostname indicates that given value is not an hostname.

View Source
const ErrNotIPv4 = 3005

ErrNotIPv4 indicates that given value is not an IPv4.

View Source
const ErrNotValidKeepalivePeriod = 3012

ErrNotValidKeepalivePeriod indicates that supplied keepalive period is invalid

View Source
const ErrNotValidKeepaliveTimeout = 3013

ErrNotValidKeepaliveTimeout indicates that supplied keepalive timeout is invalid

View Source
const ErrNotValidNetworkType = 3011

ErrNotValidNetworkType indicates that supplied network type is invalid.

View Source
const ErrUnconfirmed = 3010

ErrUnconfirmed indicates a UI confirmation dialog is cancelled by the user.

View Source
const ErrUnknownApplicationError = 3001

ErrUnknownApplicationError indicates an unknown application error.

View Source
const ErrUnknownCLIError = 2001

ErrUnknownCLIError indicates an unknown cli error.

View Source
const ErrUnknownFileIOError = 1003

ErrUnknownFileIOError indicates an unknown File IO error.

View Source
const ErrUnknownGRPCError = 1002

ErrUnknownGRPCError indicates an unknown gRPC error.

View Source
const ErrUnknownSysError = 1001

ErrUnknownSysError indicates an unknown system error.

View Source
const SystemError = 1000

SystemError error group indicates system related errors. Starting with error code 1xxx.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Message string                 `json:"message"`
	Args    map[string]interface{} `json:"args"`
	Code    int                    `json:"code"`
}

Error ...

func BadURL

func BadURL(urlStr string, e error) Error

BadURL ...

func ConflictingDemands

func ConflictingDemands(msg string) Error

ConflictingDemands ...

func EmptyValue

func EmptyValue(key string, value interface{}) Error

EmptyValue ...

func InvalidPort

func InvalidPort(str string) Error

InvalidPort ...

func MustBeLoopbackURL

func MustBeLoopbackURL(url *url.URL) Error

MustBeLoopbackURL ...

func NotCIDR

func NotCIDR(str string) Error

NotCIDR ...

func NotHostname

func NotHostname(str string) Error

NotHostname ...

func NotIPv4

func NotIPv4(str string) Error

NotIPv4 ...

func NotValidKeepalivePeriod added in v0.2.8

func NotValidKeepalivePeriod(str string) Error

NotValidKeepalivePeriod ...

func NotValidKeepaliveTimeout added in v0.2.8

func NotValidKeepaliveTimeout(str string) Error

NotValidKeepaliveTimeout ...

func NotValidNetworkType

func NotValidNetworkType(key string, value interface{}) Error

NotValidNetworkType ...

func Unconfirmed

func Unconfirmed(str string) Error

Unconfirmed ...

func UnknownApplicationError

func UnknownApplicationError(e error) Error

UnknownApplicationError ...

func UnknownCLIError

func UnknownCLIError(e error) Error

UnknownCLIError ...

func UnknownFileIOError

func UnknownFileIOError(e error) Error

UnknownFileIOError ...

func UnknownGRPCError

func UnknownGRPCError(e error) Error

UnknownGRPCError ...

func UnknownSysError

func UnknownSysError(e error) Error

UnknownSysError ...

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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