cmderr

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IDArgumentNotANumberError = errors.New(
	"The ID argument must be a number.",
)
View Source
var InvalidDateFormatError = errors.New(
	"Please enter a valid date in the format dd/mm/yyyy",
)
View Source
var NegativeLimitFlagError = errors.New(
	"The --limit flag must be positive.",
)
View Source
var OutputFormatInvalidError = errors.New(
	"Unknown output format.",
)
View Source
var ProjectBackupAlreadyDisabledError = errors.New(
	"Project backup already disabled",
)
View Source
var RouterIDRangeError = errors.New(
	"Please specify a positive number between 1 and 255 included",
)
View Source
var ServerHasNoFlavorError = errors.New(
	"Server has no listed flavor",
)

Functions

func CheckFailureError

func CheckFailureError(name string) error

func ProgramError

func ProgramError(functionName string, err error) error

func ResourceNotFoundError

func ResourceNotFoundError(resourceName string, id interface{}) error

func UnknownFlagValueError

func UnknownFlagValueError(flag string, received string, expected []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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