(subtype Subtype, format string, args ...any)
| 178 | } |
| 179 | |
| 180 | func NewAuthenticationError(subtype Subtype, format string, args ...any) *AuthenticationError { |
| 181 | return &AuthenticationError{ |
| 182 | Problem: Problem{ |
| 183 | Category: CategoryAuthentication, |
| 184 | Subtype: subtype, |
| 185 | Message: formatMessage(format, args), |
| 186 | }, |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | func (e *AuthenticationError) WithHint(format string, args ...any) *AuthenticationError { |
| 191 | e.Hint = formatMessage(format, args) |