A script-enabled browser is required for this page to function properly.

TOOL_RES.BAD_FILE_HANDLE built-in exception

This exception is raised when the file handle passed to TOOL_RES.RFCLOSE is invalid.

Syntax


TOOL_RES.BAD_FILE_HANDLE EXCEPTION;

Examples


  /*
  ** This examples uses TOOL_RES.BAD_FILE_HANDLE
  */

PRODEDURE res_test IS
 resfileh  TOOL_RES.RFHANDLE;
 resfileh1 TOOL_RES.RFHANDLE;
 res1   VARCHAR2(20);
 

BEGIN
 /* Open a resource file */
  resfileh := TOOL_RES.RFOPEN('C:\resource\test.res');
  ...


 /* Used wrong handle to close
  the resource file. */
  TOOL_RES.RFCLOSE(resfileh1);
  ...


 EXCEPTION
  WHEN TOOL_RES.BAD_FILE_HANDLE THEN
  /* print error message */
   TEXT_IO.PUT_LINE('Invalid file handle.');
 /* discard the error */
 TOOL_ERR.POP;
END;

See also

About the TOOL_RES built-in package

TOOL_RES built-in package