Error Severity Levels
VuGen supports the following severity levels:
Definition | Meaning | Value |
LRD_DB_ERROR_SEVERITY_ERROR | Terminate script execution upon database access errors.(default) | 0 |
LRD_DB_ERROR_SEVERITY_WARNING | Continue script execution upon database access errors, but issue a warning. | 1 |
For example, if the following database statement fails (e.g., the table does not exist), the script execution terminates.
lrd_stmt(Csr1, "insert into EMP values ('Smith',301)\n", -1, 1 /*Deferred*/, 1 /*Dflt Ora Ver*/, 0);
To tell VuGen to continue script execution even when a database operation error occurs, change the statement's severity parameter from a 0 to a 1.
lrd_stmt(Csr1, "insert into EMP values ('Smith',301)\n", -1, 1 /*Deferred*/, 1 /*Dflt Ora Ver*/, 1);
For more information about error handling click Error Handling.