Error returns error message
()
| 88 | |
| 89 | // Error returns error message |
| 90 | func (be *BindingError) Error() string { |
| 91 | return fmt.Sprintf("%s, field=%s", be.HTTPError.Error(), be.Field) |
| 92 | } |
| 93 | |
| 94 | // MarshalJSON implements json.Marshaler so that binding errors are serialized into |
| 95 | // a structured response (e.g. {"field":"id","message":"..."}) rather than being |
no outgoing calls