ErrorDesc:
TYPE ~
RECORD [code: ErrorCode, explanation: Rope.
ROPE, propList: Prop.PropList ¬
NIL];
ErrorCode:
TYPE ~
MACHINE
DEPENDENT {
The error code definition allows for additional values to be defined without changing this interface; these new codes will be defined as constants in ImagerErrorsExtras.
Not an error
ok (0), -- unused
Basic errors
bounds, -- A value is out of range
overflow, -- A computation overflowed
zeroDivide, -- divide by zero
nilFault, -- a NIL value was encountered
insufficientMemory, -- out of memory
ioError, -- unrecoverable I/O error
timeout, -- some resource timed out
eof, -- unexpected end-of-file
numericalInstability, -- dubious floating-point computation
bug, -- an internal error
Resource errors
fileNotFound (20),
colorModelOperatorNotFound,
colorOperatorNotFound,
colorNotFound,
decompressorNotFound,
fontNotFound,
operatorNotFound,
resourceNotFound,
accessError,
Syntax errors
syntax (40),
undefinedOperation,
invalidCompressedSequence,
malformedFont,
invalidEncoding,
invalidHeader,
invalidIdentifier,
invalidInstructionProperty,
invalidName,
invalidString,
invalidToner(50),
invalidVersion,
malformedDataFile,
Value errors
nullValue (60), -- an uninitialized value was encountered
illegalAlternateMetrics,
illegalColor,
unknownSpecialColor,
unknownSignalType,
wrongShape,
wrongSize,
notCardinal,
notInteger,
notNumber,
wrongType(70),
noFont,
illegalArguments,
illegalTransformation,
illegalPixelMask,
illegalPropertyVector,
illegalRunVector,
undefinedProperty,
Control errors
stackOverflow (80),
stackUnderflow,
saveRestoreMismatch,
markMismatch,
unmarkFailed,
invalidOperationSequence,
Implementation restrictions
obsoleteConstruct (100),
unsupportedColorOperator,
notImplemented, -- not currently implemented
unimplemented, -- not implemented, probably for a good reason
Appearance
squareEndOnStrokeOfZeroLength (120),
unableToProperlyAdjustMaskPositions,
noSubstituteColor,
fontSubstitution,
appearance,
Client
error (140), -- an error raised explicitly in a master
Client
copySensitive (160), -- a warning that a page's appearance depends on the copy number
};