appendErrorMessage

session.appendErrorMessage( String errorMessage ) (enterprise edition only)
Description
Appends an error message to any existing error messages. The error message will be displayed in the web interface. This should be used in conjunction with the setFatalErrorOccurred method.
Example
// 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." );