errors

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgumentNullOrEmptyError added in v0.2.0

type ArgumentNullOrEmptyError struct{ ArgumentName string }

ArgumentNullOrEmptyError is a utility error indicating that a required parameter was null or blank. This is not a recoverable error; if you observe one this indicates a bug in the code.

func NewArgumentNullOrEmptyError added in v0.2.0

func NewArgumentNullOrEmptyError(argumentName string) *ArgumentNullOrEmptyError

func (*ArgumentNullOrEmptyError) Error added in v0.2.0

func (e *ArgumentNullOrEmptyError) Error() string

type InvalidResponseError added in v0.2.0

type InvalidResponseError struct{ Message string }

InvalidResponseError is a utility error that means the CLI couldn't deal with a response from the server. this may represent a bug (missing code path) in the CLI, a bug in the server (wrong response), or a change in server behaviour over time.

func NewInvalidResponseError added in v0.2.0

func NewInvalidResponseError(message string) *InvalidResponseError

func (*InvalidResponseError) Error added in v0.2.0

func (e *InvalidResponseError) Error() string

type OsEnvironmentError

type OsEnvironmentError struct{ EnvironmentVariable string }

OsEnvironmentError is raised when the CLI cannot launch because a required environment variable is not set

func (*OsEnvironmentError) Error

func (e *OsEnvironmentError) Error() string

type PromptDisabledError added in v0.2.0

type PromptDisabledError struct{}

PromptDisabledError is a fallback error if code attempts to prompt the user when prompting is disabled. If you see it, it represents a bug because Commands should check IsInteractive before attempting to prompt

func (*PromptDisabledError) Error added in v0.2.0

func (e *PromptDisabledError) Error() string

Jump to

Keyboard shortcuts

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