errors

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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")
	InvalidType                 error = errors.New("Invalid Type")
	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")
	OutOfNodeCapacity           error = errors.New("OutOfNodeCapacity")
	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("Timedout")
	RunCommandFailed            error = errors.New("Run Command Failed")
	InvalidToken                error = errors.New("InvalidToken")
	Unknown                     error = errors.New("Unknown Reason")
	DeleteFailed                error = errors.New("Delete Failed")
	DeletePending               error = errors.New("Delete Pending")
	FileNotFound                error = errors.New("The system cannot find the file specified")
	PathNotFound                error = errors.New("The system cannot find the path specified")
	NotEnoughSpace              error = errors.New("There is not enough space on the disk")
	AccessDenied                error = errors.New("Access is denied")
	BlobNotFound                error = errors.New("BlobNotFound")
	GenericFailure              error = errors.New("Generic failure")
	NoAuthenticationInformation error = errors.New("NoAuthenticationInformation")
	MeasurementUnitError        error = errors.New("byte quantity must be a positive integer with a unit of measurement like")
	QuotaViolation              error = errors.New("Quota violation")
	IPOutOfRange                error = errors.New("IP is out of range")
)

Functions

func GetErrorCode

func GetErrorCode(err error) string

func GetGRPCError

func GetGRPCError(err error) error

func GetGRPCErrorCode

func GetGRPCErrorCode(err error) codes.Code

func IsAccessDenied

func IsAccessDenied(err error) bool

func IsAlreadyExists

func IsAlreadyExists(err error) bool

func IsAlreadySet

func IsAlreadySet(err error) bool

func IsBlobNotFound

func IsBlobNotFound(err error) bool

func IsDegraded

func IsDegraded(err error) bool

func IsDeleteFailed

func IsDeleteFailed(err error) bool

func IsDeletePending

func IsDeletePending(err error) bool

func IsDuplicates

func IsDuplicates(err error) bool

func IsErrDeadlineExceeded

func IsErrDeadlineExceeded(err error) bool

func IsExpired

func IsExpired(err error) bool

func IsFailed

func IsFailed(err error) bool

func IsFileNotFound

func IsFileNotFound(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 IsGenericFailure

func IsGenericFailure(err error) bool

func IsIPOutOfRange

func IsIPOutOfRange(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

func IsInvalidFilter(err error) bool

func IsInvalidGroup

func IsInvalidGroup(err error) bool

func IsInvalidInput

func IsInvalidInput(err error) bool

func IsInvalidToken

func IsInvalidToken(err error) bool

func IsInvalidType

func IsInvalidType(err error) bool

func IsInvalidVersion

func IsInvalidVersion(err error) bool

func IsMeasurementUnitError

func IsMeasurementUnitError(err error) bool

func IsNoActionTaken

func IsNoActionTaken(err error) bool

func IsNoAuthenticationInformation

func IsNoAuthenticationInformation(err error) bool

func IsNotEnoughSpace

func IsNotEnoughSpace(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func IsNotImplemented

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

func IsOldVersion(err error) bool

func IsOutOfCapacity

func IsOutOfCapacity(err error) bool

func IsOutOfMemory

func IsOutOfMemory(err error) bool

func IsOutOfNodeCapacity

func IsOutOfNodeCapacity(err error) bool

func IsOutOfRange

func IsOutOfRange(err error) bool

func IsPathNotFound

func IsPathNotFound(err error) bool

func IsPendingState

func IsPendingState(err error) bool

func IsPoolFull

func IsPoolFull(err error) bool

func IsQuotaViolation

func IsQuotaViolation(err error) bool

func IsRevoked

func IsRevoked(err error) bool

func IsRunCommandFailed

func IsRunCommandFailed(err error) bool

func IsTimeout

func IsTimeout(err error) bool

func IsUnknown

func IsUnknown(err error) bool

func IsUpdateFailed

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