errors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CodeInternalError       Code = "INTERNAL_ERROR"
	CodeParameterError      Code = "PARAMETER_ERROR"
	CodeAuthenticationError Code = "AUTHENTICATION_ERROR"

	SubCodeNone SubCode = ""
)

Functions

This section is empty.

Types

type Code

type Code string

type CodedError

type CodedError struct {
	Code    Code
	SubCode SubCode
	// contains filtered or unexported fields
}

func NewCodedError

func NewCodedError(code Code, subCode SubCode, original error) *CodedError

func NewCodedErrorMessage

func NewCodedErrorMessage(code Code, subCode SubCode, originalMessage string) *CodedError

func (*CodedError) Error

func (e *CodedError) Error() string

func (*CodedError) Unwrap

func (e *CodedError) Unwrap() error

type SubCode

type SubCode string

Jump to

Keyboard shortcuts

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