Error
data class Error(val error: OAuth2Error, val request: AuthenticationRequestParameters) : AuthnResponseResult(source)
The wallet answered with an authorization error response (OpenID4VP 1.0, 8.2, 8.5, A.4), e.g. because the user declined. The error ends the request like a presentation, so another attempt needs a new request.
OAuth2Error.errorDescription and OAuth2Error.errorUri are controlled by the wallet, so escape them when displaying them. Over the Digital Credentials API, only OAuth2Error.error is set.