errors

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mapping

type Mapping struct {
	Name       string
	StatusCode int
	ErrorMsg   string
	ErrorType  interface{}
}

func NewMapping

func NewMapping(name string, statusCode int, errorMsg string) *Mapping

func (*Mapping) Define

func (d *Mapping) Define()

func (*Mapping) InHTTP

func (d *Mapping) InHTTP()

func (*Mapping) InMethod

func (d *Mapping) InMethod()

func (*Mapping) InPayload

func (d *Mapping) InPayload()

func (*Mapping) InService

func (d *Mapping) InService()

func (*Mapping) Response

func (d *Mapping) Response()

func (*Mapping) Type

func (d *Mapping) Type(t interface{}) *Mapping

type Mappings

type Mappings []*Mapping

func (Mappings) Define

func (s Mappings) Define()

func (Mappings) Elements

func (s Mappings) Elements() designaspect.Elements

func (Mappings) Select

func (s Mappings) Select(f func(*Mapping) bool) Mappings

func (Mappings) SelectByNames

func (s Mappings) SelectByNames(args ...string) Mappings

Jump to

Keyboard shortcuts

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