Error

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

  • The Error class represents a U2F Error object.

  • The class includes constants for JSON error code and message.

  • There are public constructors to create an Error object with or without an error message.

  • Public methods allow retrieval of the error code and message, as well as conversion to a JSON object or string representation.

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 ()