erx

package
v1.1.212 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatError

func FormatError(err Error) string

func Is

func Is(err Error, other error) bool

func Unwrap

func Unwrap(err Error) error

Types

type Error

type Error interface {
	error
	GetContext() string
	GetReason() string
	GetDetails() string
	GetCause() error
	WithReason(reason string) Error
	WithCause(cause error) Error
	WithDetails(details string) Error
	Copy() Error
}

func New

func New(context string, reason string) Error

Jump to

Keyboard shortcuts

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