BindError returns first seen bind error and resets/empties binder errors for further calls
()
| 205 | |
| 206 | // BindError returns first seen bind error and resets/empties binder errors for further calls |
| 207 | func (b *ValueBinder) BindError() error { |
| 208 | if b.errors == nil { |
| 209 | return nil |
| 210 | } |
| 211 | err := b.errors[0] |
| 212 | b.errors = nil // reset errors so next chain will start from zero |
| 213 | return err |
| 214 | } |
| 215 | |
| 216 | // BindErrors returns all bind errors and resets/empties binder errors for further calls |
| 217 | func (b *ValueBinder) BindErrors() []error { |
no outgoing calls