09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Error Recovery <strong>Basic</strong> <strong>Characteristics</strong> <strong>RAPID</strong><br />

occurs in a routine that does not contain an error handler (or if the error is explicitly<br />

propagated using the raise instruction) the same error is raised again at the point where<br />

the routine was called – the error is propagated. If the top of the call chain is reached<br />

without any error handler being found, the system error handler is called. The system<br />

error handler just reports the error and stops the execution. If an error is propagated<br />

from a trap routine this will result in immediate termination of the execution by the system<br />

error handler.<br />

Error recovery is not available for instructions in the backward handler. Such errors are<br />

always propagated to the system error handler.<br />

In addition to errors detected and raised by the robot, a program can explicitly raise<br />

errors using the RAISE instruction. This facility can be used to recover from complex<br />

situations. It can, for example, be used to escape from deeply-nested code positions.<br />

Error numbers 1-90 may be used in the raise instruction. Explicitly-raised errors are<br />

treated exactly like errors raised by the system.<br />

Note that it is not possible to recover from or respond to errors that occur within an error<br />

clause. Such errors are always propagated to the system error handler.<br />

5-34 <strong>RAPID</strong> Reference Manual

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

Saved successfully!

Ooh no, something went wrong!