errors

package
v1.5.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorMessage

type ErrorMessage struct {
	Reason string `json:"reason"`
	Advice string `json:"advice,omitempty"`
	See    string `json:"see,omitempty"`
	Cause  error  `json:"-"`
}

func (ErrorMessage) Error

func (e ErrorMessage) Error() string

func (ErrorMessage) String

func (e ErrorMessage) String() string

func (*ErrorMessage) UnmarshalJSON

func (em *ErrorMessage) UnmarshalJSON(bytes []byte) error

func (ErrorMessage) Unwrap

func (e ErrorMessage) Unwrap() error

type ErrorResponse

type ErrorResponse struct {
	Message ErrorMessage `json:"message"`
}

Jump to

Keyboard shortcuts

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