InvalidUriException

class InvalidUriException(message: String? = null, cause: Throwable? = null) : MfaException(source)

Exception thrown when an MFA URI is structurally invalid or cannot be parsed.

Reusable across OATH and Push URI parsers. Thrown for scheme mismatches, unrecognised OATH types, missing required parameters (e.g. secret), issuer/label mismatches, and any other structural parse failures. Value-validation errors (e.g. digits out of range) remain as IllegalArgumentException at the throw site.

Parameters

message

A human-readable description of the parse failure.

cause

The underlying cause of the exception, if any.

Constructors

Link copied to clipboard
constructor(message: String? = null, cause: Throwable? = null)