MCPcopy Index your code
hub / github.com/labstack/echo / NewBindingError

Function NewBindingError

binder.go:81–87  ·  view source on GitHub ↗

NewBindingError creates new instance of binding error

(sourceParam string, values []string, message string, err error)

Source from the content-addressed store, hash-verified

79
80// NewBindingError creates new instance of binding error
81func NewBindingError(sourceParam string, values []string, message string, err error) error {
82 return &BindingError{
83 Field: sourceParam,
84 Values: values,
85 HTTPError: &HTTPError{Code: http.StatusBadRequest, Message: message, err: err},
86 }
87}
88
89// Error returns error message
90func (be *BindingError) Error() string {

Callers 12

TestBindingError_ErrorFunction · 0.85
PathParamFunction · 0.85
PathParamOrFunction · 0.85
QueryParamFunction · 0.85
QueryParamOrFunction · 0.85
QueryParamsFunction · 0.85
QueryParamsOrFunction · 0.85
FormValueFunction · 0.85
FormValueOrFunction · 0.85
FormValuesFunction · 0.85
FormValuesOrFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestBindingError_ErrorFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…