errors

package
v0.10.16-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 6 Imported by: 43

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the Apache v2.0 license.

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFound             error = errors.New("Not Found")
	Degraded             error = errors.New("Degraded")
	InvalidConfiguration error = errors.New("Invalid Configuration")
	InvalidInput         error = errors.New("Invalid Input")
	NotSupported         error = errors.New("Not Supported")
	AlreadyExists        error = errors.New("Already Exists")
	InUse                error = errors.New("In Use")
	Duplicates           error = errors.New("Duplicates")
	InvalidFilter        error = errors.New("Invalid Filter")
	Failed               error = errors.New("Failed")
	InvalidGroup         error = errors.New("InvalidGroup")
	InvalidVersion       error = errors.New("InvalidVersion")
	OldVersion           error = errors.New("OldVersion")
	OutOfCapacity        error = errors.New("OutOfCapacity")
	OutOfMemory          error = errors.New("OutOfMemory")
	UpdateFailed         error = errors.New("Update Failed")
	NotInitialized       error = errors.New("Not Initialized")
	NotImplemented       error = errors.New("Not Implemented")
	OutOfRange           error = errors.New("Out of range")
	AlreadySet           error = errors.New("Already Set")
	NotSet               error = errors.New("Not Set")
	InconsistentState    error = errors.New("Inconsistent state")
	PendingState         error = errors.New("Pending state")
	WrongHost            error = errors.New("Wrong host")
	PoolFull             error = errors.New("The pool is full")
	NoActionTaken        error = errors.New("No Action Taken")
	Expired              error = errors.New("Expired")
	Revoked              error = errors.New("Revoked")
	Timeout              error = errors.New("The operation has timed out")
	RunCommandFailed     error = errors.New("Run Command Failed")
	InvalidToken         error = errors.New("InvalidToken")
	Unknown              error = errors.New("Unknown Reason")
)

Functions

func GetErrorCode added in v0.10.8

func GetErrorCode(err error) string

func GetGRPCError

func GetGRPCError(err error) error

func GetGRPCErrorCode

func GetGRPCErrorCode(err error) codes.Code

func IsAlreadyExists

func IsAlreadyExists(err error) bool

func IsAlreadySet

func IsAlreadySet(err error) bool

func IsDegraded

func IsDegraded(err error) bool

func IsDuplicates added in v0.10.8

func IsDuplicates(err error) bool

func IsErrDeadlineExceeded added in v0.10.15

func IsErrDeadlineExceeded(err error) bool

func IsExpired added in v0.10.8

func IsExpired(err error) bool

func IsFailed added in v0.10.8

func IsFailed(err error) bool

func IsGRPCAborted

func IsGRPCAborted(err error) bool

func IsGRPCAlreadyExist

func IsGRPCAlreadyExist(err error) bool

func IsGRPCDeadlineExceeded

func IsGRPCDeadlineExceeded(err error) bool

func IsGRPCNotFound

func IsGRPCNotFound(err error) bool

func IsGRPCUnavailable

func IsGRPCUnavailable(err error) bool

func IsGRPCUnknown

func IsGRPCUnknown(err error) bool

func IsInUse

func IsInUse(err error) bool

func IsInconsistentState

func IsInconsistentState(err error) bool

func IsInvalidConfiguration

func IsInvalidConfiguration(err error) bool

func IsInvalidFilter added in v0.10.8

func IsInvalidFilter(err error) bool

func IsInvalidGroup

func IsInvalidGroup(err error) bool

func IsInvalidInput

func IsInvalidInput(err error) bool

func IsInvalidToken added in v0.10.14

func IsInvalidToken(err error) bool

func IsInvalidVersion

func IsInvalidVersion(err error) bool

func IsNoActionTaken

func IsNoActionTaken(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func IsNotImplemented added in v0.10.8

func IsNotImplemented(err error) bool

func IsNotInitialized

func IsNotInitialized(err error) bool

func IsNotSet

func IsNotSet(err error) bool

func IsNotSupported

func IsNotSupported(err error) bool

func IsOldVersion added in v0.10.8

func IsOldVersion(err error) bool

func IsOutOfCapacity added in v0.10.7

func IsOutOfCapacity(err error) bool

func IsOutOfMemory

func IsOutOfMemory(err error) bool

func IsOutOfRange

func IsOutOfRange(err error) bool

func IsPendingState

func IsPendingState(err error) bool

func IsPoolFull

func IsPoolFull(err error) bool

func IsRevoked added in v0.10.8

func IsRevoked(err error) bool

func IsTimeout added in v0.10.8

func IsTimeout(err error) bool

func IsUnknown added in v0.10.8

func IsUnknown(err error) bool

func IsUpdateFailed added in v0.10.8

func IsUpdateFailed(err error) bool

func IsWrongHost

func IsWrongHost(err error) bool

func New

func New(errString string) error

func Wrap

func Wrap(cause error, message string) error

func Wrapf

func Wrapf(err error, format string, args ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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