errors

package
v1.0.0-pre Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

some std errors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EchoErrHandler

func EchoErrHandler(err error, c echo.Context)

from Echo

func NewBErr

func NewBErr(code int, msg string) error

func NewCErr

func NewCErr(code int, msg string) error

func NewIErr

func NewIErr(code int, msg string) error

Types

type BErr

type BErr struct {
	Err
}

type CErr

type CErr struct {
	Err
}

type Err

type Err struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

std error

func (Err) Error

func (e Err) Error() string

type IErr

type IErr struct {
	Err
}

Jump to

Keyboard shortcuts

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