public class

Error

extends Object
java.lang.Object
   ↳ com.google.android.gms.fido.u2f.api.common.Error

Class Overview

Represents a U2F Error object.

Summary

Constants
String JSON_ERROR_CODE
String JSON_ERROR_MESSAGE
Public Constructors
Error(ErrorCode errorCode)
Error(ErrorCode errorCode, String errorMessage)
Public Methods
ErrorCode getErrorCode()
String getErrorMessage()
JSONObject toJsonObject()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

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)

Parameters
errorCode ErrorCode

public Error (ErrorCode errorCode, String errorMessage)

Parameters
errorCode ErrorCode
errorMessage String

Public Methods

public ErrorCode getErrorCode ()

Returns
ErrorCode

public String getErrorMessage ()

Returns
String

public JSONObject toJsonObject ()

Returns
JSONObject

public String toString ()

Returns
String