ENUM
ErrorKey
public enum ErrorKey: Error
Cases
API_ERROR(error:)
case API_ERROR(error: String)
When the API throw an error
APPKEY_GENERATE_ERROR
case APPKEY_GENERATE_ERROR
When the app keys generation failed
BLE_ERROR(message:)
case BLE_ERROR(message: String)
When a BLE error occured
DATA_LEN_NOT_MATCHING(searched:getted:)
case DATA_LEN_NOT_MATCHING(searched: UInt8, getted: UInt8)
When the data length of SAR request or response is not matching the documentation
INVALID_B64
case INVALID_B64
When getting an invalid base 64 string
PROCESSOR_ERROR(message:)
case PROCESSOR_ERROR(message: String)
When getting a frame processor error
UNKNOWN_FRAME_KEY(frame:)
case UNKNOWN_FRAME_KEY(frame: UInt8)
When getting an unknown frame keys during proccessing
KEYCHAIN_ERROR
case KEYCHAIN_ERROR
When getting an error from keychain