Package io.jans.fido2.exception
Class Fido2NativeFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jans.fido2.exception.Fido2RuntimeException
io.jans.fido2.exception.Fido2NativeFailureException
- All Implemented Interfaces:
Serializable
A
Fido2RuntimeException that also carries why a ceremony failed, for failure modes
that are not attestation-trust related (see Fido2TrustException for those). It is a
subclass rather than a new exception type for the same reason Fido2TrustException is: every
existing catch (Fido2RuntimeException) continues to catch it unchanged, and the message it
is constructed with is the same one the plain exception carried — the diagnostic code simply
travels with the failure so metrics can record it instead of a free-text message.- Author:
- Janssen Project
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFido2NativeFailureException(NativeFailureDiagnostic diagnostic, String errorMessage) -
Method Summary
Modifier and TypeMethodDescriptionThe reason the ceremony failed.Methods inherited from class io.jans.fido2.exception.Fido2RuntimeException
getFormattedMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Fido2NativeFailureException
-
-
Method Details
-
getDiagnostic
The reason the ceremony failed.
-