errors

package
v0.0.0-...-690ff77 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Err

type Err int

Err is a shellicator specific error.

const (

	// ErrGeneric Generic error occured.
	ErrGeneric Err
	// ErrTokenNotFound a token was not found.
	ErrTokenNotFound
	// ErrProviderNotFound no oauth provider found.
	ErrProviderNotFound
	// ErrProviderCfgInvalid provider configuration is invalid.
	ErrProviderCfgInvalid
	// ErrTimeout timeout occured while waiting for an answer.
	ErrTimeout
)

func (Err) Error

func (e Err) Error() string

func (Err) Is

func (e Err) Is(err error) bool

Is implementation of errors.Is

func (Err) WithMessage

func (e Err) WithMessage(msg string) error

WithMessage returns an error with the specified message.

func (Err) WithMessageAndError

func (e Err) WithMessageAndError(msg string, err error) error

WithMessageAndError wraps an existing error and adds a message.

func (Err) WithWrappedError

func (e Err) WithWrappedError(err error) error

WithWrappedError wraps an existing error an returns a new error.

Jump to

Keyboard shortcuts

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