Carapace

Error Classes & Codes

Error Classes

The following error classes are defined by Carapace:

class codeclass namedescription
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

Error Class 1: Carapace

The following codes are used within the Carapace error class:

class.codedescription
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

Error Class 2: Fatal

The following codes are used within the Fatal error class:

class.codedescription
2.1 not implemented
2.2 bad runtime configuration
2.3 bad environment

Error Class 3: System

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.

Error Class 4: Configuration

None defined as yet.

Error Class 5: FileHandling

The following codes are used within the Fatal error class:

class.codedescription
5.1 cannot open
5.2 cannot close
5.3 cannot read
5.3 cannot write
5.3 cannot discover file status

Error Class 6: Communications

The following codes are used within the Communications error class:

class.codedescription
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

Error Class 7: Database

None defined as yet.

Error Class 8: Parse

The following codes are used within the Parse error class:

class.codedescription
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

Error Class 9: COM

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