11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Routine, Debugging, and Other CommandsThis way of passing control to an error handler is preferable to use of the legacy ZQUITcommand.ExamplesThis example shows how you use the ZTRAP command with an expression to produce anerror code:; at this point the routine discovers an error ...ZTRAP "ER23"...When the routine is run and it discovers the anticipated error condition, the output appearsas follows:tag+offset^routineThis example shows how the use of a postconditional affects the ZTRAP command:;ZTRAP:y

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!