goa

package module
v0.15.9 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnumErr added in v0.15.9

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

func (EnumErr) Error added in v0.15.9

func (pe EnumErr) Error() string

func (EnumErr) GetClientData added in v0.15.9

func (pe EnumErr) GetClientData() interface{}

func (EnumErr) GetUserMsg added in v0.15.9

func (pe EnumErr) GetUserMsg() string

func (EnumErr) Unwrap added in v0.15.9

func (pe EnumErr) Unwrap() error

type ErrorCodeGoa

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

func AsErrorCodeGoa

func AsErrorCodeGoa(err error) *ErrorCodeGoa

func ErrorCodeToGoa

func ErrorCodeToGoa(errCode errcode.ErrorCode) ErrorCodeGoa

func ErrorResponse

func ErrorResponse(err error) ErrorCodeGoa

func ServiceErrorToErrorCode added in v0.13.0

func ServiceErrorToErrorCode(err *goalib.ServiceError) ErrorCodeGoa

func (ErrorCodeGoa) Code

func (ec ErrorCodeGoa) Code() errcode.Code

func (ErrorCodeGoa) Error

func (ec ErrorCodeGoa) Error() string

func (ErrorCodeGoa) GoaErrorName

func (ec ErrorCodeGoa) GoaErrorName() string

fulfill GOA expectation

func (ErrorCodeGoa) MarshalJSON added in v0.15.3

func (ec ErrorCodeGoa) MarshalJSON() ([]byte, error)

func (ErrorCodeGoa) StatusCode

func (ec ErrorCodeGoa) StatusCode() int

fulfill http.Statuser

func (ErrorCodeGoa) Unwrap

func (ec ErrorCodeGoa) Unwrap() error

type FieldClientData added in v0.15.8

type FieldClientData struct {
	ID          string
	Name        string
	Field       string
	FullMessage string
}

type FieldValueClientData added in v0.15.6

type FieldValueClientData struct {
	FieldClientData
	Value string
}

type FormatErr added in v0.15.6

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

func (FormatErr) Error added in v0.15.6

func (fe FormatErr) Error() string

func (FormatErr) GetClientData added in v0.15.6

func (fe FormatErr) GetClientData() interface{}

func (FormatErr) GetUserMsg added in v0.15.6

func (fe FormatErr) GetUserMsg() string

func (FormatErr) Unwrap added in v0.15.6

func (fe FormatErr) Unwrap() error

type MissingFieldErr added in v0.15.8

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

func (MissingFieldErr) Error added in v0.15.8

func (me MissingFieldErr) Error() string

func (MissingFieldErr) GetClientData added in v0.15.8

func (me MissingFieldErr) GetClientData() interface{}

func (MissingFieldErr) GetUserMsg added in v0.15.8

func (me MissingFieldErr) GetUserMsg() string

func (MissingFieldErr) Unwrap added in v0.15.8

func (me MissingFieldErr) Unwrap() error

type PatternErr added in v0.15.5

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

func (PatternErr) Error added in v0.15.5

func (pe PatternErr) Error() string

func (PatternErr) GetClientData added in v0.15.5

func (pe PatternErr) GetClientData() interface{}

func (PatternErr) GetUserMsg added in v0.15.5

func (pe PatternErr) GetUserMsg() string

func (PatternErr) Unwrap added in v0.15.5

func (pe PatternErr) Unwrap() error

Jump to

Keyboard shortcuts

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