class ResponseTypeException extends RuntimeException (View source)

Represents an error found when the AuthenticatorResponse from a challenge is not of the expected type e.g. for verification we expect {AuthenticatorAssertionResponse} but could instead be returned a {AuthenticatorAttestationResponse} It is an extreme edge case, but is technically possible {PublicKeyCredentialLoader::createResponse}