VA Smalltalk Virtual Machine API : Primitive error codes

Primitive error codes
All errors reported by VA Smalltalk are found in the pool dictionary named SystemPrimitiveErrors. To determine the cause of a particular error, use:
SystemPrimitiveErrors keyAtValue: errorNumber
In some cases, the error reported is 18 which is OSError. This indicates that an OSError occurred during some primitive or system initialization. In the case of image startUp, OSError 18 indicates that reading the image file resulted in an error.
Applications can return error codes from Smalltalk using the following code:
System exit: errorCode withObject: returnObject
errorCode should be a SmallInteger whose possible values are described below. returnObject, which can be used to provide additional debugging information when running with a debugging virtual machine, should normally be nil.
The error codes shown below can be returned from the API functions or displayed in a Fatal Application Error dialog box.
Users can add new error codes with values above EsPrimErrMinUserError. User error codes from 9000 through 9099 will suppress the display of the Fatal Application Error dialog box.
Table 39. User Primitive Error Codes