errors

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(text string) error

func Newf

func Newf(format string, a ...any) error

func Unexpected

func Unexpected(text string) error

func Unexpectedf

func Unexpectedf(format string, a ...any) error

Types

type Error

type Error struct {
	Message  string
	Expected bool
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) IsExpected

func (e *Error) IsExpected() bool

type Expected

type Expected interface {
	IsExpected() bool
	error
}

Jump to

Keyboard shortcuts

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