Cause returns the underlying cause of an error that has been wrapped with additional context.
(e error)
| 53 | // Cause returns the underlying cause of an error that has been wrapped |
| 54 | // with additional context. |
| 55 | func Cause(e error) error { |
| 56 | out := e |
| 57 | if e, ok := e.(errWrapped); ok && e.cause != nil { |
| 58 | out = e.cause |
| 59 | } |
| 60 | return out |
| 61 | } |
| 62 | |
| 63 | // Resumable returns whether or not the error means that the stream of data is |
| 64 | // malformed and the information is unrecoverable. |
no outgoing calls
searching dependent graphs…