WithTemporary wraps the passed error object with the implementation of the Temporary() method that will return the specified value. Original error value can be obtained using errors.Unwrap.
(err error, temporary bool)
| 70 | // |
| 71 | // Original error value can be obtained using errors.Unwrap. |
| 72 | func WithTemporary(err error, temporary bool) error { |
| 73 | return temporaryErr{err, temporary} |
| 74 | } |