Error returns a formatted error for SerializationError
()
| 107 | |
| 108 | // Error returns a formatted error for SerializationError |
| 109 | func (e *SerializationError) Error() string { |
| 110 | const msg = "serialization failed" |
| 111 | if e.Err == nil { |
| 112 | return msg |
| 113 | } |
| 114 | return fmt.Sprintf("%s: %v", msg, e.Err) |
| 115 | } |
| 116 | |
| 117 | // Unwrap returns the underlying Error in SerializationError |
| 118 | func (e *SerializationError) Unwrap() error { return e.Err } |
nothing calls this directly
no outgoing calls
no test coverage detected