throw

package
v1.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiCustomException

func ApiCustomException(code int, msg string) error

API请求异常

func ApiException

func ApiException(err error) error

API请求异常

func ClientException

func ClientException(err error) error

请求客户端异常

func SqlException

func SqlException(err error) error

数据库异常

func ValidationException

func ValidationException(err error, msg ...string) error

参数验证异常

Types

type ApiCustomError

type ApiCustomError struct {
	*handler.ExceptionError
}

type ApiError

type ApiError struct {
	*handler.ExceptionError
}

type ClientError

type ClientError struct {
	*handler.ExceptionError
}

type SqlError

type SqlError struct {
	*handler.ExceptionError
	Number uint16
}

type ValidationError

type ValidationError struct {
	*handler.ExceptionError
	Field            string
	Tag              string
	ValidationErrors []ValidationErrors
}

type ValidationErrors

type ValidationErrors struct {
	Field string
	Tag   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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