setErrorMessage

session.setErrorMessage( String errorMessage ) (enterprise edition only)
Description
Sets an error message. 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.setErrorMessage( "An error occurred in the scraping session." );