Introduction
The provided NSError
helps you determine the cause of the error.
The error.code
contains the general type of the error, defined in the FYBVirtualCurrencyErrorType
enum type. See the table below for a description of the possible error types.
Error Type | Description |
---|---|
FYBVirtualCurrencyErrorTypeNoConnection | Request couldn't be sent, usually due to a non-working network connection. |
FYBVirtualCurrencyErrorTypeInvalidResponse | Returned response is not formatted in an expected way. |
FYBVirtualCurrencyErrorTypeInvalidResponseSignature | Response doesn't contain a valid signature. The response signature is verified against your secret token. |
FYBVirtualCurrencyErrorTypeServer | The server returned an error described in errorCode. |
FYBVirtualCurrencyErrorTypeInvalidResponseSignature | Response doesn't contain a valid signature. The response signature is verified against your secret token. |
FYBVirtualCurrencyErrorTypeServer | The server returned an error described in errorCode. |
FYBVirtualCurrencyErrorTypeOther | An error occurred whose cause couldn't be determined. |