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();
}
if (scrapeableFile.inputOutputErrorOccurred())
{
// Log error occurrence
session.log("Input/output error occurred.");
// End scrape
session.stopScraping();
}
scraper on 07/16/2010 at 5:19 pm
- Printer-friendly version
- Login or register to post comments