errorx

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNoSchedulerError

func IsNoSchedulerError(err error) bool

func IsSchedulerOnlineError

func IsSchedulerOnlineError(err error) bool

func NewDefaultError

func NewDefaultError(message string, a ...any) error

func NewError

func NewError(code int64, message string, data interface{}) error

Types

type DsError

type DsError struct {
	Code    int64       `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

func (*DsError) Error

func (e *DsError) Error() string

Jump to

Keyboard shortcuts

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