SetError sets the error state if no error has occurred yet (first error wins)
(e Error)
| 129 | |
| 130 | // SetError sets the error state if no error has occurred yet (first error wins) |
| 131 | func (c *ReadContext) SetError(e Error) { |
| 132 | if c.err.Ok() { |
| 133 | c.err = e |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | // TakeError returns the current error and resets the error state |
| 138 | func (c *ReadContext) TakeError() Error { |
no test coverage detected