core

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCode

func IsCode(err error, code ErrorCode) bool

Types

type AppError

type AppError struct {
	Message ErrorMessage
	Code    ErrorCode
	Status  ErrorStatus
	Cause   error
}

func NewAppError

func NewAppError(message ErrorMessage, code ErrorCode, cause error) *AppError

func (*AppError) Error

func (err *AppError) Error() string

func (*AppError) Is

func (err *AppError) Is(target error) bool

func (*AppError) Unwrap

func (err *AppError) Unwrap() error

type ErrorCode

type ErrorCode string

type ErrorMessage

type ErrorMessage string

type ErrorStatus

type ErrorStatus string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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