(subtype Subtype, format string, args ...any)
| 336 | } |
| 337 | |
| 338 | func NewConfigError(subtype Subtype, format string, args ...any) *ConfigError { |
| 339 | return &ConfigError{ |
| 340 | Problem: Problem{ |
| 341 | Category: CategoryConfig, |
| 342 | Subtype: subtype, |
| 343 | Message: formatMessage(format, args), |
| 344 | }, |
| 345 | } |
| 346 | } |
| 347 | |
| 348 | func (e *ConfigError) WithHint(format string, args ...any) *ConfigError { |
| 349 | e.Hint = formatMessage(format, args) |