status

package
v0.64.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(code Code) error

func ErrorMessage

func ErrorMessage(code Code, message string) error

func Register

func Register(code Code)

func RegisterWithMessage

func RegisterWithMessage(code Code, message string)

func Wrap

func Wrap(code Code, err error, extra ...any) error

Types

type Code

type Code int

type Status

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

func FromError

func FromError(err error) *Status

func New

func New(code Code, message string, err error) *Status

func (Status) Code

func (e Status) Code() Code

func (Status) Error

func (e Status) Error() string

func (Status) Extra

func (e Status) Extra() any

func (Status) Message

func (e Status) Message() string

func (Status) Unwrap

func (e Status) Unwrap() error

Jump to

Keyboard shortcuts

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