12.07.2015 Views

RAPID reference manual - Technology

RAPID reference manual - Technology

RAPID reference manual - Technology

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.

RAISERobotWare-OSInstructionProgram executionProgram execution continues in the routine’s error handler. After the error handler hasbeen executed, program execution can continue with:- the routine that called the routine in question (RETURN),- the error handler of the routine that called the routine in question (RAISE).If the RAISE instruction is present in a routine’s error handler, program execution continuesin the error handler of the routine that called the routine in question. The sameerror number remains active. A RAISE instruction in a routine’s error handler has alsoanother feature, it can be used for long jump (see “Error Recovery With Long Jump”).With a long jump it is possible to propagate an error from an error handler from a deepneested call chain to a higher level in one step.If the RAISE instruction is present in a trap routine, the error is dealt with by the system’serror handler.Error handlingIf the error number is out of range, the system variable ERRNO is set toERR_ILLRAISE (see "Data types - errnum"). This error can be handled in the errorhandler.Syntax(EBNF)RAISE [] ’;’ ::= Related informationDescribed in:Error handlingError recovery with long jumpBooking error numbersBasic Characteristics - Error RecoveryBasic Characteristics - Error RecoveryInstructions - BookErrNo370 <strong>RAPID</strong> <strong>reference</strong> <strong>manual</strong> - part 1a, Instructions A-R

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

Saved successfully!

Ooh no, something went wrong!