autherror

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	Type    string   `json:"type" yaml:"type"`
	Code    string   `json:"code" yaml:"code"`
	Message string   `json:"message" yaml:"message"`
	Hint    string   `json:"hint,omitempty" yaml:"hint,omitempty"`
	Hints   []string `json:"hints,omitempty" yaml:"hints,omitempty"`
}

type Error

type Error struct {
	// contains filtered or unexported fields
}

func New

func New(code, message, hint string) *Error

func NewWithHints

func NewWithHints(code, message string, hints ...string) *Error

func (*Error) Envelope

func (e *Error) Envelope() Envelope

func (*Error) Error

func (e *Error) Error() string

func (*Error) RawJSON

func (e *Error) RawJSON() string

Jump to

Keyboard shortcuts

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