inputOutputErrorOccured

boolean scrapeableFile.inputOutputErrorOccurred ( )

Description

Determine if an input or output error occurred when requesting file.

Parameters

This method does not receive any parameters.

Return Values

Returns true if an error has occurred; otherwise, it returns false.

Change Log

Version Description
5.0 Added for all editions.

This method should be run after the scrapeable file has been scraped.

Examples

End scrape on Error

 // Check for error<br />
 if (scrapeableFile.inputOutputErrorOccurred())
 {
     // Log error occurrence
     session.log("Input/output error occurred.");
     // End scrape
     session.stopScraping();
 }