1. A computer-readable storage medium configured with data and with instructions that when executed by at least one processor causes the processor(s) to perform a process for compiling a routine of a software program, the process comprising the steps of: locating a routine body in a source code of the software program; and placing in a virtual table data structure two routine pointers, namely, an exception-based routine pointer and an error-ID-based routine pointer, the exception-based routine pointer pointing to an exception-based version of the routine body that contains exception-based code which will upon execution by a processor throw an exception in response to an exceptional condition that is specified in the exception-based code, and the error-ID-based routine pointer pointing to an error-ID-based version of the routine body that contains error-ID-based code which will upon execution by a processor set an error code variable to an integer value that has a definition outside the error-ID-based code in response to an erroneous condition that is specified in the error-ID-based code.