apierror

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalid

func IsInvalid(err error) bool

Types

type APIError

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

func NewInvalid

func NewInvalid(kind fmt.Stringer, errs ErrorFieldAggregate) *APIError

func (*APIError) Error

func (e *APIError) Error() string

func (*APIError) Status

func (e *APIError) Status() Status

type ErrorField

type ErrorField string

func NewInvalidField

func NewInvalidField(path string, value string, detail string) ErrorField

func NewMissingField

func NewMissingField(path string) ErrorField

type ErrorFieldAggregate

type ErrorFieldAggregate []ErrorField

func (ErrorFieldAggregate) String

func (agg ErrorFieldAggregate) String() string

type Status

type Status int
const (
	Unknown Status = iota
	Invalid
)

Jump to

Keyboard shortcuts

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