TOOL_RES.NO_RESOURCE
built-in exceptionThis 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.
TOOL_RES.NO_RESOURCE EXCEPTION;
/*
** 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;
About the TOOL_RES
built-in package
Copyright © 1984, 2005, Oracle. All rights reserved.