Error Handling
Error Handling#
oneIPL error handling must rely on the mechanism of C++ exceptions. Should an error occurs, it must be propagated at the point of a function call where it must be caught using standard C++ exception handling mechanism.
For performance reasons the implementations to perform error-checking is not fully required. Each functions has a set of compile-time checks and exceptions. Compile-time checks shall be implemented to be compliant to specification, while exceptions might be partially disabled for performance reason. The recommended way to disable the exceptions is to provide disabling mechanism during compilation stage. Since the conditions to perform exception can be disabled, it might improve the performance of the execution.