public class PoyntError
extends java.lang.Object
implements android.os.Parcelable
Constructor and Description |
---|
PoyntError() |
PoyntError(int code) |
PoyntError(java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
co.poynt.api.model.Code |
getApiErrorCode() |
int |
getCode() |
java.lang.String |
getData() |
int |
getHttpStatusCode() |
java.lang.String |
getReason() |
java.lang.String |
getRequestId() |
java.lang.Throwable |
getThrowable() |
static boolean |
isNetworkError(PoyntError poyntError) |
void |
setApiErrorCode(co.poynt.api.model.Code apiErrorCode) |
void |
setCode(int code) |
void |
setData(java.lang.String data) |
void |
setHttpStatusCode(int httpStatusCode) |
void |
setReason(java.lang.String reason) |
void |
setRequestId(java.lang.String requestId) |
void |
setThrowable(java.lang.Throwable throwable) |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final int CODE_DEVICE_NOT_REGISTERED
public static final int CODE_DEVICE_NOT_ASSOCIATED_WITH_BUSINESS
public static final int CODE_DEVICE_NOT_ASSOCIATED_WITH_STORE
public static final int CODE_DEVICE_CREDENTIALS_NOT_FOUND
public static final int CODE_DEVICE_NOT_ACTIVATED
public static final int CODE_NETWORK_UNAVAILABLE
public static final int CODE_NETWORK_ERROR
public static final int CODE_NETWORK_CONNECTION_TIMEOUT
public static final int CODE_NETWORK_READ_TIMEOUT
public static final int CODE_PROCESSOR_UNRESPONSIVE
public static final int CODE_UNAUTHORIZED
public static final int CODE_TOKEN_UNPARSEABLE
public static final int CODE_TOKEN_EXPIRED
public static final int CODE_TOKEN_MISSING_CLAIMS
public static final int CODE_TOKEN_SUBJECT_MISMATCH
public static final int CODE_TOKEN_AUDIENCE_MISMATCH
public static final int CODE_TOKEN_INVALID_ISSUER
public static final int CODE_TOKEN_UNAVAILABLE
public static final int CODE_API_ERROR
public static final int CODE_API_SERVICE_NOT_AVAILABLE
public static final int CODE_OFFLINE_DECLINED
public static final int CODE_ONLINE_DECLINED
public static final int CODE_MAC_VERIFY_FAILED
public static final int CODE_LOST_CONNECTION_WITH_SERVICE
public static final int CODE_BAD_PARAMETER_PASSED
public static final int CARD_READER_FAILURE
public static final int CARD_NOT_PRESENTED
public static final int CARD_READER_NOT_AVAILABLE
public static final int CARD_READER_TIMEOUT
public static final int CARD_READER_NO_KEYS
public static final int CARD_DECLINE
public static final int CARD_CANCELED
public static final int ENCRYPTION_FAILED
public static final int UPDATE_SESSION_KEY_FAILED
public static final int CHECK_CARD_FAILURE
public static final int NEW_PIN_FAILURE
public static final int CARD_READER_TAMPERED
public static final int MANUAL_ENTRY_FAILED
public static final int SILENT_CANCEL
public static final int CODE_CALL_VOICE_AUTH
public static final int ACCESSORY_NOT_FOUND
public static final int CAPABILITY_NOT_FOUND
public static final int CODE_UNEXPECTED_EXCEPTION
public static final int CODE_CONTENT_PROVIDER_GET_FAILED
public static final int CODE_CONTENT_PROVIDER_CREATE_FAILED
public static final int CODE_CONTENT_PROVIDER_UPDATE_FAILED
public static final int CODE_CONTENT_PROVIDER_DELETE_FAILED
public static final int KERNEL_NOT_FOUND
public static final int INVALID_KERNEL_TYPE
public static final int OBJECT_NOT_FOUND
public static final int CARD_DECLINE_BY_CARD_READER
public static final int TRANSACTION_VALIDATION_FAILED
public static final int TRANSACTION_VALIDATION_FAILED_RETRY
public static android.os.Parcelable.Creator<PoyntError> CREATOR
public PoyntError(java.lang.Throwable throwable)
public PoyntError()
public PoyntError(int code)
public int getCode()
public void setCode(int code)
public int getHttpStatusCode()
public void setHttpStatusCode(int httpStatusCode)
public co.poynt.api.model.Code getApiErrorCode()
public void setApiErrorCode(co.poynt.api.model.Code apiErrorCode)
public java.lang.String getReason()
public void setReason(java.lang.String reason)
public java.lang.String getData()
public void setData(java.lang.String data)
public java.lang.String getRequestId()
public void setRequestId(java.lang.String requestId)
public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public static boolean isNetworkError(PoyntError poyntError)
public java.lang.Throwable getThrowable()
public void setThrowable(java.lang.Throwable throwable)