therrors

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NestErrorPaths

func NestErrorPaths(e error, path string) error

NestErrorPaths is used to nest paths along with the error

Types

type Error

type Error struct {
	Message    string                 `json:"message"`
	Extensions map[string]interface{} `json:"extensions"`
	Paths      []string               `json:"paths"`
}

Error represents the error returned by server in response

func ConvertError

func ConvertError(e error) *Error

ConvertError converts any error to jerrors.Error

func (*Error) Error

func (e *Error) Error() string

type MultiError

type MultiError struct {
	Errors []*Error
}

func (*MultiError) Error

func (e *MultiError) Error() string

Jump to

Keyboard shortcuts

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