errors

package
v0.0.0-...-6b11828 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorRecordNotFound = I18n("common-record-not-found")
View Source
var ErrorServerInternalError = I18n("common-server-internal-error")

Functions

func As

func As(err error, target any) bool

func Is

func Is(err error, target error) bool

Types

type Error

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

func I18n

func I18n(id string, params ...string) *Error

func New

func New(message string, params ...any) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) I18n

func (e *Error) I18n(ctx context.Context) string

func (*Error) Is

func (e *Error) Is(target error) bool

Jump to

Keyboard shortcuts

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