public class PCNetError
extends PCAbstractError
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
PCNetError.ServiceError |
Modifier and Type | Field and Description |
---|---|
static int |
PC_ERROR_CRYPTO_ENGINE_LICENSE_EXPIRED
License for the crypto engine used with the designed
PCUser has expired and thus the
cryptography operations cannot be conducted |
static int |
PC_ERROR_FROM_SERVER
The error is returned by PC Server.
|
static int |
PC_ERROR_OPERATION_INTERRUPTED
The operation was interrupted
|
static int |
PC_ERROR_OPERATION_NOT_SUPPORTED
Operation not supported
|
static int |
PC_ERROR_SDK_NOT_INITIALIZED
The instance of PCSDK is not initialized or corrupted
|
static int |
PC_ERROR_TRANSACTION_ALREADY_CONFIRMED
Occurs when trying to confirm, decline or get data for the transaction which has already been confirmed
|
static int |
PC_ERROR_TRANSACTION_ALREADY_DECLINED
Occurs when trying to confirm, decline or get data for the transaction which has already been declined
|
static int |
PC_ERROR_TRANSACTION_CANCELLED
Occurs when trying to confirm, decline or get data for the transaction which has been cancelled
|
static int |
PC_ERROR_TRANSACTION_TIMEOUT
Occurs when trying to confirm, decline or get data for the transaction which has expired
|
static int |
PCIS_ERROR_CANNOT_DEFINE_API_VERSION
The API version of the PC External cannot be defined
|
static int |
PCIS_ERROR_CANNOT_SAVE_RESPONSE
Response from the server cannot be saved to file.
|
static int |
PCIS_ERROR_FINGERPRINT_ALREADY_SET
Device fingerprint already set
|
static int |
PCIS_ERROR_GENERAL
Undefined error.
|
static int |
PCIS_ERROR_NO_CONNECTION
No internet connection
|
static int |
PCIS_ERROR_OK
No error
|
static int |
PCIS_ERROR_REQUEST_TIMEOUT
Request timeout (408)
|
static int |
PCIS_ERROR_SERVER_NOT_AVAILABLE
Server unavailable
|
static int |
PCIS_ERROR_UNEXPECTED_ANSWER_FORMAT
Answer from server has unexpected format
|
static int |
PCIS_ERROR_URL_NOT_FOUND
URL not found
|
static int |
PCIS_ERROR_USER_NOT_READY_TO_SIGN
Password required
|
Constructor and Description |
---|
PCNetError(int type)
Constructor
|
PCNetError(int httpCode,
int serverCode,
java.lang.String HTTPPayload)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getHTTPCode()
Get HTTP code from server's response
|
java.lang.String |
getHTTPPayload()
Get HTTP Payload from PCSDK Server.
|
java.lang.String |
getMessage()
Get error message
|
java.lang.String |
getOriginalHTTPPayload() |
int |
getServerCode()
Get error code from PCSDK server
|
java.lang.String |
toString() |
public static final int PCIS_ERROR_OK
public static final int PCIS_ERROR_NO_CONNECTION
public static final int PCIS_ERROR_SERVER_NOT_AVAILABLE
public static final int PCIS_ERROR_GENERAL
public static final int PCIS_ERROR_URL_NOT_FOUND
public static final int PCIS_ERROR_USER_NOT_READY_TO_SIGN
public static final int PCIS_ERROR_FINGERPRINT_ALREADY_SET
public static final int PC_ERROR_OPERATION_NOT_SUPPORTED
public static final int PCIS_ERROR_REQUEST_TIMEOUT
public static final int PCIS_ERROR_UNEXPECTED_ANSWER_FORMAT
public static final int PCIS_ERROR_CANNOT_SAVE_RESPONSE
public static final int PCIS_ERROR_CANNOT_DEFINE_API_VERSION
public static final int PC_ERROR_OPERATION_INTERRUPTED
public static final int PC_ERROR_FROM_SERVER
getServerCode()
and getHTTPPayload()
for more detailspublic static final int PC_ERROR_CRYPTO_ENGINE_LICENSE_EXPIRED
PCUser
has expired and thus the
cryptography operations cannot be conductedpublic static final int PC_ERROR_TRANSACTION_ALREADY_CONFIRMED
public static final int PC_ERROR_TRANSACTION_ALREADY_DECLINED
public static final int PC_ERROR_TRANSACTION_CANCELLED
public static final int PC_ERROR_TRANSACTION_TIMEOUT
public static final int PC_ERROR_SDK_NOT_INITIALIZED
public PCNetError(int httpCode, int serverCode, java.lang.String HTTPPayload)
httpCode
- HTTP CodeHTTPPayload
- HTTP Payloadpublic PCNetError(int type)
type
- Error typepublic int getHTTPCode()
public int getServerCode()
public java.lang.String getMessage()
public java.lang.String getHTTPPayload()
public java.lang.String getOriginalHTTPPayload()
public java.lang.String toString()