The following error classes are defined by Carapace:
| class code | class name | description |
|---|---|---|
1 |
Carapace | errors in Carapace script usage -- eg. trying to pass an argument of incorrect type to a function |
2 |
Fatal | fatal errors -- ie. ones we cannot safely continue if they happen |
3 |
System | system errors -- eg. failure to access a system resource |
4 |
Configuration | bad configuration |
5 |
FileHandling | file and file-system related errors |
6 |
Communications | communications errors -- eg. failure to connect etc. |
7 |
Database | database related errors -- eg. failure to connect to the desired database |
8 |
Parse | parse errors when loading in Carapace scripts |
9 |
COM | Component Object Model errors -- eg. a COM server died |
The following codes are used within the Carapace error class:
| class.code | description |
|---|---|
1.1 |
invalid |
1.2 |
illegal |
1.3 |
missing |
1.4 |
unknown |
1.5 |
runtime error |
1.6 |
not implemented |
1.7 |
index out of range |
1.8 |
invalid argument |
1.9 |
division by zero |
1.10 |
internal error |
1.11 |
type mismatch |
1.12 |
not supported |
1.13 |
not licensed |
The following codes are used within the Fatal error class:
| class.code | description |
|---|---|
2.1 |
not implemented |
2.2 |
bad runtime configuration |
2.3 |
bad environment |
The error codes within the System class come from the operating system
itself -- they are not generated from Carapace. These should be looked up in the
documentation for the host operating system.
The following codes are used within the Fatal error class:
| class.code | description |
|---|---|
5.1 |
cannot open |
5.2 |
cannot close |
5.3 |
cannot read |
5.3 |
cannot write |
5.3 |
cannot discover file status |
The following codes are used within the Communications error class:
| class.code | description |
|---|---|
6.1 |
timeout |
6.2 |
connect failed |
6.3 |
receive failed |
6.4 |
send failed |
6.5 |
disconnect failed |
6.6 |
listen failed |
6.7 |
bind failed |
6.8 |
accept failed |
6.9 |
select failed |
6.10 |
cancel failed |
6.11 |
failed |
6.12 |
bad runtime configuration |
6.13 |
bad environment |
6.14 |
invalid |
6.15 |
runtime error |
6.16 |
unexpected shutdown |
6.17 |
missing service module |
6.18 |
invalid state |
6.19 |
not supported |
6.20 |
unknown attribute |
6.21 |
bad attribute type |
6.22 |
buffer too short |
The following codes are used within the Parse error class:
| class.code | description |
|---|---|
8.1 |
invalid |
8.2 |
invalid symbol |
8.3 |
invalid string |
8.4 |
invalid binary |
8.5 |
invalid integer |
8.6 |
invalid real |
8.7 |
invalid operator |
8.8 |
invalid list |
8.9 |
unexpected end-of-file |
8.10 |
internal error |
The error codes within the COM class come from COM
itself -- they are not generated from Carapace. These should be looked up in the
documentation for the COM subsystem.
| Contents | Index | Current topic: objects | Related topics: functions |