kratoserrors

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsError

func IsError[E reasonEnum](err error, enum E, httpCode int) bool

IsError checks if the given error matches the specified enum and HTTP code

IsError 检查给定错误是否匹配指定的枚举和 HTTP 代码

func NewError

func NewError[E reasonEnum](httpCode int, enum E, format string, args ...interface{}) *errors.Error

NewError creates a new error with the specified parameters

NewError 创建带指定参数的新错误

Types

This section is empty.

Jump to

Keyboard shortcuts

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