errors

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RxTemplateParseError = regexp.MustCompile(`template: ([^:]+?):(\d+):\s*(.+?)\s*$`)
	RxTemplateExecError  = regexp.MustCompile(`template: ([^:]+?):(\d+):(\d+):\s*executing\s*"[^"]+?"\s*at\s*<[^>]+?>:\s*(.+?)\s*$`)
)
View Source
var (
	ErrNotImplemented        = errors.New("not implemented")
	ErrSignalStopped         = errors.New("signal stopped action")
	ErrNothingToDo           = errors.New("nothing to do")
	ErrPermissionDenied      = errors.New("permission denied")
	ErrBadCookie             = errors.New("bad cookie")
	ErrBadRequest            = errors.New("bad request")
	ErrExistsAlready         = errors.New("exists already")
	ErrDirNotFound           = errors.New("directory not found")
	ErrFileNotFound          = errors.New("file not found")
	ErrUserNotFound          = errors.New("user not found")
	ErrGroupNotFound         = errors.New("group not found")
	ErrTokenNotFound         = errors.New("token not found")
	ErrSecretNotFound        = errors.New("secret not found")
	ErrProviderNotFound      = errors.New("provider not found")
	ErrAudienceNotFound      = errors.New("audience not found")
	ErrFileSystemLockTimeout = errors.New("filesystem lock request timed out")
	ErrSuspiciousPanic       = errors.New("suspicious activity or possible programmer error")
	ErrDataTypeNotSupported  = errors.New("data type not supported")
)

Functions

func BadRequestError added in v0.5.0

func BadRequestError(printer *message.Printer) (msg string)

func FormExpiredError added in v0.5.0

func FormExpiredError(printer *message.Printer) (msg string)

func IncompleteFormError added in v0.5.0

func IncompleteFormError(printer *message.Printer) (msg string)

func IncompleteLinkError added in v0.5.0

func IncompleteLinkError(printer *message.Printer) (msg string)

func Must added in v0.5.0

func Must(err error)

func OtpChallengeFailed added in v0.5.0

func OtpChallengeFailed(printer *message.Printer) (msg string)

func ParseJsonError added in v0.5.0

func ParseJsonError(e error, content string) (err error)

func ParseTemplateError added in v0.5.0

func ParseTemplateError(message, content string) (err error)

func PermissionDeniedError added in v0.5.0

func PermissionDeniedError(printer *message.Printer) (msg string)

func UnexpectedError added in v0.5.0

func UnexpectedError(printer *message.Printer) (msg string)

func UserNotFound added in v0.5.0

func UserNotFound(printer *message.Printer) (msg string)

Types

type EnjinError

type EnjinError struct {
	Title   string
	Summary string
	Content string
}

func NewEnjinError

func NewEnjinError(title, summary, content string) *EnjinError

func NewEnjinOffsetError added in v0.5.0

func NewEnjinOffsetError(title, err, content string, offset int64) (ee *EnjinError)

func NewEnjinOffsetRangeError added in v0.5.0

func NewEnjinOffsetRangeError(title, err, content string, offset, end int64) (ee *EnjinError)

func (*EnjinError) Error

func (e *EnjinError) Error() (message string)

func (*EnjinError) Html

func (e *EnjinError) Html() (markup template.HTML)

func (*EnjinError) NjnData

func (e *EnjinError) NjnData() (data map[string]interface{})

Jump to

Keyboard shortcuts

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