mistake

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(message string) error

* * New * @param message string * @return error *

func Newf

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

* * Newf * @param format string, args ...any * @return error *

Types

type Mistake added in v0.1.2

type Mistake struct {
	Message string
	Code    string
	Data    et.Json
}

func NewMistake added in v0.1.2

func NewMistake(message, code string, data et.Json) *Mistake

* * NewMistake return a new mistake * @param message, code string, data any * @return *Mistake *

func (*Mistake) Error added in v0.1.2

func (m *Mistake) Error() string

* * Error return the error message * @return string *

Jump to

Keyboard shortcuts

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