Error returns a formatted error for DeserializationError
()
| 69 | |
| 70 | // Error returns a formatted error for DeserializationError |
| 71 | func (e *DeserializationError) Error() string { |
| 72 | const msg = "deserialization failed" |
| 73 | if e.Err == nil { |
| 74 | return msg |
| 75 | } |
| 76 | return fmt.Sprintf("%s, %v", msg, e.Err) |
| 77 | } |
| 78 | |
| 79 | // Unwrap returns the underlying Error in DeserializationError |
| 80 | func (e *DeserializationError) Unwrap() error { return e.Err } |
nothing calls this directly
no outgoing calls
no test coverage detected