10. Error Code Definition

Unified error is WatchError class

10.1. General Error Codes

Range: 0x1000-0x1FFF (4096-8191)

Name

Code

Description

WatchError#ERR_NONE

0x0(0)

Operation success(Success)


WatchError#ERR_INVALID_PARAMETER

0x1001(4097)

Invalid parameter(Invalid Parameter)

WatchError#ERR_CANCEL_OP

0x1002(4098)

Cancel operation(Cancel Operation)

WatchError#ERR_OPERATION_TIMEOUT

0x1003(4099)

Operation timeout(Operation timeout.)


WatchError#ERR_IN_PROGRESS

0x1100(4352)

Task in progress(Task is in progress.)

WatchError#ERR_FUNC_NOT_SUPPORT

0x1101(4353)

Feature not supported(Feature not supported.)

10.2. Connection Error Codes

Range: 0x2000-0x2FFF (8192-12287)

Name

Code

Description

WatchError#ERR_REMOTE_NOT_CONNECT

0x2000(8192)

Remote device not connected(The remote device is not connected.)

WatchError#ERR_DEVICE_NOT_MATCH

0x2001(8193)

Operation device mismatch(The device is not the same as the device in use.)

WatchError#ERR_USE_SYSTEM_API

0x2002(8194)

System interface call failed(Failed to use system reflection function.)

WatchError#ERR_AUTH_DEVICE

0x2003(8195)

Device authentication failed(Failed to auth device.)

10.3. Communication Error Codes

Range: 0x3000-0x3FFF (12288-16383)

Name

Code

Description

WatchError#ERR_CMD_SEND

0x3000(12288)

Command send failed(Command sending failed.)

WatchError#ERR_PARSE_DATA

0x3001(12289)

Parse data exception(Failed to parse RCSP data.)

WatchError#ERR_RESPONSE_TIMEOUT

0x3002(12290)

Wait for device response timeout(Waiting for a reply packet timed out.)

WatchError#ERR_SYSTEM_BUSY

0x3003(12291)

System busy(System is busy.)

WatchError#ERR_RESPONSE_BAD_STATUS

0x3004(12292)

Device returns failed status(Device returns a failed state.)

WatchError#ERR_RESPONSE_BAD_RESULT

0x3005(12293)

Device returns failed result(Device returns a failure result.)


WatchError#ERR_CRC_CHECK

0x3100(12544)

CRC check failed(CRC is error.)

WatchError#ERR_DEVICE_IN_CALLING

0x3101(12545)

Device in call status(The device is in calling.)

WatchError#ERR_OP_NOT_ALLOW

0x3102(12546)

Operation not allowed(The operation is not allowed.)

10.4. File Operation Error Codes

Range: 0x4000-0x4FFF (16384-20479)

Name

Code

Description

WatchError#ERR_STORAGE_OFFLINE

0x4000(16384)

Storage offline(Storage offline.)

WatchError#ERR_FILE_BROWSING

0x4001(16385)

File browsing(File browsing.)

WatchError#ERR_DATA_LOAD_COMPLETE

0x4002(16386)

Data loading complete(File data is loaded.)

WatchError#ERR_MISSING_FILE_DATA

0x4003(16387)

Missing file data(Missing file data.)

WatchError#ERR_DIR_TOO_DEEP

0x4004(16388)

Directory hierarchy too deep(Directory hierarchy is too deep.)

WatchError#ERR_IO_EXCEPTION

0x4005(16389)

IO Exception(IO Exception.)

WatchError#ERR_FILE_NOT_IN_STORAGE

0x4006(16390)

File does not match storage(File does not match storage.)


WatchError#ERR_FAT_DISK

0x4101(16641)

Low level disk I/O layer error(A hard error occurred in the low level disk I/O layer.)

WatchError#ERR_FAT_INIT

0x4102(16642)

Assertion failed(Assertion failed.)

WatchError#ERR_FAT_NOT_READY

0x4103(16643)

Physical drive cannot work(The physical drive cannot work.)

WatchError#ERR_FAT_NO_FILE

0x4104(16644)

File not found(Could not find the file.)

WatchError#ERR_FAT_NO_PATH

0x4105(16645)

Path not found(Could not find the path.)

WatchError#ERR_FAT_INVALID_NAME

0x4106(16646)

Invalid path name(The path name format is invalid.)

WatchError#ERR_FAT_DENIED

0x4107(16647)

Access denied due to prohibited access or directory full(Access denied due to prohibited access or directory full.)

WatchError#ERR_FAT_EXIST

0x4108(16648)

Access denied due to prohibited access(Access denied due to prohibited access.)

WatchError#ERR_FAT_INVALID_OBJECT

0x4109(16649)

Invalid file/directory object(The file/directory object is invalid.)

WatchError#ERR_FAT_WRITE_PROTECTED

0x410A(16650)

Physical drive write protected(The physical drive is write protected.)

WatchError#ERR_FAT_INVALID_DRIVE

0x410B(16651)

Invalid logical drive number(The logical drive number is invalid.)

WatchError#ERR_FAT_NOT_ENABLED

0x410C(16652)

Volume has no work area(The volume has no work area.)

WatchError#ERR_FAT_NO_FILESYSTEM

0x410D(16653)

No valid FAT volume(There is no valid FAT volume.)

WatchError#ERR_FAT_MKFS_ABORTED

0x410E(16654)

f_mkfs() aborted due to problem(The f_mkfs() aborted due to any problem.)

WatchError#ERR_FAT_TIMEOUT

0x410F(16655)

Could not access volume within defined period(Could not get a grant to access the volume within defined period.)

WatchError#ERR_FAT_LOCKED

0x4110(16656)

Operation rejected according to file sharing policy(The operation is rejected according to the file sharing policy.)

WatchError#ERR_FAT_NOT_ENOUGH_CORE

0x4111(16657)

LFN working buffer allocation failed(LFN working buffer could not be allocated.)

WatchError#ERR_FAT_TOO_MANY_OPEN_FILES

0x4112(16658)

Number of open files exceeds FF_FS_LOCK(Number of open files > FF_FS_LOCK.)

WatchError#ERR_FAT_INVALID_PARAMETER

0x4113(16659)

Invalid input parameter(Given parameter is invalid.)

WatchError#ERR_FAT_TOO_BIG

0x4114(16660)

Image too big, insufficient space to add(Image size to big, do not to support big size image.)

WatchError#ERR_FAT_JNI_INIT

0x4116(16662)

Watch system not initialized(Watch system has not been initialized.)

WatchError#ERR_FAT_WRITE

0x4117(16663)

Write data failed(Write data failed.)

WatchError#ERR_FAT_READ

0x4118(16664)

Read data failed(Read data failed.)

WatchError#ERR_FAT_SYNC

0x4119(16665)

Sync data error(Sync data error.)

WatchError#ERR_FAT_BEGIN

0x411B(16667)

Process start error(Process start error.)

WatchError#ERR_FAT_END

0x411C(16668)

Process end error(Process end error.)


WatchError#ERR_VERSION_NOT_MATCH

0x4200(16896)

File information does not match(File information does not match.)

WatchError#ERR_SPACE_TO_UPDATE

0x4201(16897)

Insufficient space to update multiple files(Insufficient space to update multiple files.)

WatchError#ERR_RENAME_FILE

0x4202(16898)

Rename file failed(Failed to rename the file.)

WatchError#ERR_DATA_OVER_LIMIT

0x4203(16899)

Sent data exceeds limit(The data sent exceeds the limit.)

10.5. Network Module Error Codes

Range: 0x5000-0x5FFF (20480-24575)

Name

Code

Description

WatchError#ERR_NETWORK_OTA_UNKNOWN

0x5000(20480)

Undefined upgrade error code(Undefined upgrade error code.)

WatchError#ERR_NETWORK_OTA_FAILED

0x5001(20481)

Network module upgrade failed(Network module upgrade failed.)

WatchError#ERR_NETWORK_OTA_TIMEOUT

0x5002(20482)

Network module upgrade timeout(Network module upgrade timeout.)

WatchError#ERR_NETWORK_OTA_WAITING_COMMAND_TIMEOUT

0x5003(20483)

Network module timeout waiting for upgrade command(Network module timeout waiting for upgrade command.)