clierrors

package
v3.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnspecifiedErrorCode int = 100
	InterruptSignalCode  int = 101
	MissingCredentials   int = 102
	InvalidCredentials   int = 103
)

Variables

This section is empty.

Functions

func CheckAuthenticationFailed

func CheckAuthenticationFailed(err error) bool

Types

type ClientError

type ClientError interface {
	ErrorCode() int
}

ClientError declares interface for errors known to the client that set specific error code.

type CommandFailedError

type CommandFailedError struct {
	FailedCount int
}

func (CommandFailedError) Error

func (err CommandFailedError) Error() string

func (CommandFailedError) ErrorCode

func (err CommandFailedError) ErrorCode() int

type InvalidCredentialsError

type InvalidCredentialsError struct{}

func (InvalidCredentialsError) Error

func (err InvalidCredentialsError) Error() string

func (InvalidCredentialsError) ErrorCode

func (err InvalidCredentialsError) ErrorCode() int

type MissingCredentialsError

type MissingCredentialsError struct {
	ConfigFile string
}

func (MissingCredentialsError) Error

func (err MissingCredentialsError) Error() string

func (MissingCredentialsError) ErrorCode

func (err MissingCredentialsError) ErrorCode() int

Jump to

Keyboard shortcuts

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