Next: , Previous: , Up: SCM Interface   [Contents][Index]


6.1 SCM Status Codes

Function: err? x

Return x if a valid error code (-1 … MAXERR); else #f.

Function: success? x

Not err?.

constant: success

Successful execution (0).

Negative integers are used for errors according to increasingly severity, as follows:

constant: notpres

Successful execution, no data present or no change made

constant: terminated

Failure, no damage, caller can retry operation

constant: retryerr

Failure, no damage, caller can retry operation

constant: keyerr

Failure, no damage, call was in error

constant: argerr

Failure, no damage, call was in error

constant: noroom

Failure, no damage, out of room in file.

constant: typerr

Failure, file or object was not of correct type.

constant: ioerr

I/O error, DB may be damaged.

constant: strangerr

Internal error, DB may be damaged.

constant: unkerr

Placeholder code.

constant: maxerr

All error codes are between 0 and maxerr.