Class Fido2Exception

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.thalesgroup.gemalto.fido2.internal.EnhancedErrorCodeException
com.thalesgroup.gemalto.fido2.internal.EnhancedErrorCodeException.PropagatingException
com.thalesgroup.gemalto.fido2.Fido2Exception
All Implemented Interfaces:
Serializable

public class Fido2Exception extends com.thalesgroup.gemalto.fido2.internal.EnhancedErrorCodeException.PropagatingException
A custom exception thrown when a FIDO2 operation fails.

This exception provides a specific Fido2ErrorCode to identify the cause of the failure.

Since:
1.0.0
See Also:
  • Constructor Details

  • Method Details

    • getError

      @NonNull public Fido2ErrorCode getError()
      Gets the specific error code that indicates why the operation failed.
      Returns:
      The Fido2ErrorCode for this exception.
      Since:
      1.0.0
    • getMessage

      @NonNull public String getMessage()
      Gets the detailed error message.

      The message includes the error code, a description, and any additional details.

      Overrides:
      getMessage in class com.thalesgroup.gemalto.fido2.internal.EnhancedErrorCodeException.PropagatingException
      Returns:
      The complete error message.
      Since:
      1.0.0