Message returns the underlying error message. It may be empty if the original error was created with a status code and a nil error.
()
| 200 | // Message returns the underlying error message. It may be empty if the |
| 201 | // original error was created with a status code and a nil error. |
| 202 | func (e *Error) Message() string { |
| 203 | if e.err != nil { |
| 204 | return e.err.Error() |
| 205 | } |
| 206 | return "" |
| 207 | } |
| 208 | |
| 209 | // Unwrap allows [errors.Is] and [errors.As] access to the underlying error. |
| 210 | func (e *Error) Unwrap() error { |