Error

  • The Error class is deprecated and developers should use Fido APIs instead.

  • It represents a U2F Error object and provides methods to access error code and message.

  • Error objects can be converted to JSON objects for easier handling.

  • Two public constructors are available to create Error instances with an error code and optional error message.

public class Error extends Object

This class is deprecated.
Please use Fido APIs instead.

Represents a U2F Error object.

Constant Summary

String JSON_ERROR_CODE
String JSON_ERROR_MESSAGE

Public Constructor Summary

Error(ErrorCode errorCode)
Error(ErrorCode errorCode, String errorMessage)

Public Method Summary

ErrorCode
String
JSONObject
String

Inherited Method Summary

Constants

public static final String JSON_ERROR_CODE

Constant Value: "errorCode"

public static final String JSON_ERROR_MESSAGE

Constant Value: "errorMessage"

Public Constructors

public Error (ErrorCode errorCode)

public Error (ErrorCode errorCode, String errorMessage)

Public Methods

public ErrorCode getErrorCode ()

public String getErrorMessage ()

public JSONObject toJsonObject ()

public String toString ()