error_codes

package
v0.0.0-...-d2864de Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 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 PelicanError

type PelicanError struct {
	// contains filtered or unexported fields
}

func NewAuthorizationError

func NewAuthorizationError(err error) *PelicanError

func NewContactError

func NewContactError(err error) *PelicanError

func NewContact_CacheError

func NewContact_CacheError(err error) *PelicanError

func NewContact_DirectorError

func NewContact_DirectorError(err error) *PelicanError

func NewContact_OriginError

func NewContact_OriginError(err error) *PelicanError

func NewContact_RegistryError

func NewContact_RegistryError(err error) *PelicanError

func NewParameterError

func NewParameterError(err error) *PelicanError

func NewResolutionError

func NewResolutionError(err error) *PelicanError

func NewSpecificationError

func NewSpecificationError(err error) *PelicanError

func NewSpecification_FileNotCreatedError

func NewSpecification_FileNotCreatedError(err error) *PelicanError

func NewSpecification_FileNotFoundError

func NewSpecification_FileNotFoundError(err error) *PelicanError

func NewTransferError

func NewTransferError(err error) *PelicanError

func NewTransfer_SlowTransferError

func NewTransfer_SlowTransferError(err error) *PelicanError

func NewTransfer_StoppedTransferError

func NewTransfer_StoppedTransferError(err error) *PelicanError

func (*PelicanError) Error

func (e *PelicanError) Error() string

function that takes in a PelicanError object and returns it in a string formatted message

func (*PelicanError) ExitCode

func (e *PelicanError) ExitCode() int

function that maps the error to the exit code

func (*PelicanError) Unwrap

func (e *PelicanError) Unwrap() error

This function takes in a PelicanError unwraps any inner errors wrapped inside of it

func (*PelicanError) Wrap

func (e *PelicanError) Wrap(err error) *PelicanError

This function takes in an existing error and wraps it into a PelicanError object

Jump to

Keyboard shortcuts

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