errors

package
v0.3.2 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: 0

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