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_OPERATION_INTERRUPTED
The operation was interrupted
|
static int |
PC_ERROR_OPERATION_NOT_SUPPORTED
Operation not supported
|
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 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()