errorDetails

package
v2.0.40 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDetailCodes

func GetDetailCodes(err error) []string

func GetErrorStacktrace

func GetErrorStacktrace(err error) errors.StackTrace

func SetErrorDetails

func SetErrorDetails(errorCode string, errorMessage string)

func WithDetail

func WithDetail(err error, errorCode string) error

Types

type DetailFactory

type DetailFactory map[string]string

func NewDetailFactory

func NewDetailFactory() DetailFactory

type ErrorDetails

type ErrorDetails struct {
	ErrorCode    string `json:"errorCode"`
	ErrorMessage string `json:"errorMessage"`
}

func GetDetails

func GetDetails(err error) []*ErrorDetails

func GetErrorDetails

func GetErrorDetails(errorCode string) (*ErrorDetails, bool)

func GetErrorDetailsList

func GetErrorDetailsList() []*ErrorDetails

func NewErrorDetails

func NewErrorDetails(errorCode string, errorMessage string) *ErrorDetails

Jump to

Keyboard shortcuts

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