errors

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFound         error = errors.New("Not Found")
	Timedout         error = errors.New("Timedout")
	InvalidInput     error = errors.New("Invalid Input")
	InvalidType      error = errors.New("Invalid Type")
	NotSupported     error = errors.New("Not Supported")
	AlreadyExists    error = errors.New("Already Exists")
	InvalidFilter    error = errors.New("Invalid Filter")
	Failed           error = errors.New("Failed")
	NotImplemented   error = errors.New("Not Implemented")
	Unknown          error = errors.New("Unknown Reason")
	DvdDriveNotFound error = errors.New("DVDDriveNotFound")
)

Functions

func IsAlreadyExists

func IsAlreadyExists(err error) bool

func IsDvdDriveNotFound added in v0.30.2

func IsDvdDriveNotFound(err error) bool

func IsFailed added in v0.21.0

func IsFailed(err error) bool

func IsInvalidFilter added in v0.21.0

func IsInvalidFilter(err error) bool

func IsInvalidInput added in v0.21.0

func IsInvalidInput(err error) bool

func IsInvalidType added in v0.21.0

func IsInvalidType(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func IsNotImplemented added in v0.21.0

func IsNotImplemented(err error) bool

func IsNotSupported added in v0.21.0

func IsNotSupported(err error) bool

func IsTimedout added in v0.21.0

func IsTimedout(err error) bool

func IsUnknown added in v0.21.0

func IsUnknown(err error) bool

func IsWMIError added in v0.21.0

func IsWMIError(err error) bool

func New

func New(errString string) error

func NewWMIError added in v0.21.0

func NewWMIError(errorCode uint16) 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