Page 68 / 113
Section 7.
Programmer’s reference
7.1.3. Error messages
There are several error messages defined in LW3 protocol. All of them have a unique error
number which can be used programmatically, and an informative error message.
Format:
XE
●[primitive]●%EYYYY:●[Error message]
Legend:
X can be:
‘-’:
syntax error. Cannot parse the command at all.
‘n’:
node error.
‘p’:
property error.
‘m’: method error.
YYY: error code, which can be one of the followings:
E001
Syntax error
E010
Illegal parameter count
E002
Node not found
E011
Item already exist
E003
EOL expected
E012
Item does not exist
E004
Writing read-only property
E013
Illegal operation
E005
Invalid value
E014
Internal error
E006
Property does not exist
E015
Access denied
E007
Syntax error
E016
Write access denied
E008
Illegal method
E017
Reserved
E009
Method does not exist
E018
Waiting timeout
7.1.4. Prefix summary
The following prefixes are defined in LW3 protocol:
‘n-’: a node,
‘nE’: an error for a node,
‘nm’: a manual for a node,
‘pr’: a read-only property,
‘pw’: read-write property,
‘pE’: an error for the property,
‘pm’: a manual for the property,
‘m-’: a method,
‘mO’: a response after a success method execution,
‘mF’: a response after a failed method execution,
‘mE’: an error for a method,
‘mm’: a manual for a method.