errmap

package
v0.12.1-alpha1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: AGPL-3.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 ErrorRegistry

type ErrorRegistry interface {
	Lookup(err error) (Result, bool)
	Register(err error, status int, response errorResponses.ErrorResponse)
}

type Registry

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

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Lookup

func (m *Registry) Lookup(err error) (Result, bool)

func (*Registry) Register

func (m *Registry) Register(err error, status int, response errorResponses.ErrorResponse)

type Result

type Result struct {
	Status   int
	Response errorResponses.ErrorResponse
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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