appendErrorMessage
void session.appendErrorMessage ( String errorMessage ) (enterprise edition only)
Description
Append an error message to any existing error messages.
Parameters
- errorMessage Error message that should be added, as a string.
Return Values
Returns void.
Change Log
Version | Description |
---|---|
4.5 | Available for enterprise edition. |
Examples
User Specified Error
// First set the flag indicating that an error occurred.
session.setFatalErrorOccurred( true );
// Append an error message.
session.appendErrorMessage( "An error occurred in the scraping session." );
session.setFatalErrorOccurred( true );
// Append an error message.
session.appendErrorMessage( "An error occurred in the scraping session." );
See Also
- getErrorMessage() [session] - Retrieve the current error message.
- setErrorMessage() [session] - Set the error message.
scraper on 07/16/2010 at 4:54 pm
- Printer-friendly version
- Login or register to post comments