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) Register ¶
func (m *Registry) Register(err error, status int, response errorResponses.ErrorResponse)
type Result ¶
type Result struct {
Status int
Response errorResponses.ErrorResponse
}
Click to show internal directories.
Click to hide internal directories.