errs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Router  string
	Message string
}

Error error

func New

func New(err error) *Error

New new an error

func Newf

func Newf(format string, args ...interface{}) *Error

Newf new an error with format

func (*Error) Error

func (o *Error) Error() string

Error error interface

func (*Error) Prefix

func (o *Error) Prefix(prefix string) *Error

Prefix add prefix to err's router

Jump to

Keyboard shortcuts

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