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

TOOL_RES.BUFFER_OVERFLOW built-in exception

This exception is raised when you tried to get a resource that was longer than the supplied buffer.

Syntax


TOOL_RES.BUFFER_OVERFLOW EXCEPTION;

Examples


/*
** This example uses TOOL_RES.BUFFER_OVERFLOW
*/

PRODEDURE res_buf_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 very large string
  which overflows buffer. */
  res1 := TOOL_RES.RFREAD(resfileh,'res_1');
  ...
 
 EXCEPTION
  WHEN TOOL_RES.BUFFER_OVERFLOW THEN
  /* print error message */
  TEXT_IO.PUT_LINE('Buffer overflow.');
  /* discard the error */
  TOOL_ERR.POP;
END;

See also

About the TOOL_RES built-in package

TOOL_RES built-in package