Supporting calls in HqnAssert
This page applies to Harlequin v13.1r0 and later; both Harlequin Core and Harlequin MultiRIP
In addition to the various assertion calls listed in The HqnAssert procset
and its child pages, the HqnAssert
procset also includes some utility functions:
ErrPrint takes any object and prints it to stderr
. The standard PostScript cvs operator is used to generate a string for printing if the object is not already a string, and the resulting string must be shorter than 512 bytes.
(We should not have got here!) ErrPrint
ExtraError is a convenience function to provide extra detail with an error report. It takes three arguments: the offending command, the error name, and a string of extra information.
/MyProcedure /rangecheck (Wibble must be between 17 and 42) ExtraError