(subtype Subtype, format string, args ...any)
| 403 | } |
| 404 | |
| 405 | func NewNetworkError(subtype Subtype, format string, args ...any) *NetworkError { |
| 406 | return &NetworkError{ |
| 407 | Problem: Problem{ |
| 408 | Category: CategoryNetwork, |
| 409 | Subtype: subtype, |
| 410 | Message: formatMessage(format, args), |
| 411 | }, |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | func (e *NetworkError) WithHint(format string, args ...any) *NetworkError { |
| 416 | e.Hint = formatMessage(format, args) |