TOOL_RES.No_Resource
Description
This exception is raised when the named resource could not be found. If a file was specified, the resource does not exist in that file. If no file was specified, the resource does not exist in any of the resource files that are currently open.
Syntax
Tool_Res.No_Resource EXCEPTION;
Example
/*
** This examples uses Tool_Res.No_Resource
*/
PRODEDURE res_test IS
resfileh TOOL_RES.RFHANDLE;
res1 VARCHAR2(20);
BEGIN
/* Open a resource file */
resfileh := TOOL_RES.RFOPEN
('C:/resource/test.res');
/* Attempt to read nonexistant
resource from file. */
res1 := TOOL_RES.RFREAD(resfileh,'Res_1');
...
EXCEPTION
WHEN TOOL_RES.NO_RESOURCE THEN
/* print error message */
TEXT_IO.PUT_LINE('Cannot find the resource.');
/* discard the error */
TOOL_ERR.POP;
END;