Java Reference
In-Depth Information
{
throw (new WorkloadException(e));
} catch (IllegalAccessException e)
{
throw (new WorkloadException(e));
} catch (ClassNotFoundException e)
{
throw (new WorkloadException(e));
} catch (SQLException e)
{
throw (new WorkloadException(e));
}
}
/**
* Mark the specified URL as error.
*
* @param url
* The URL that had an error.
* @throws WorkloadException
* Thrown if the specified URL could not be
* marked.
*/
public void markError(URL url) throws WorkloadException
{
try
{
setStatus(url, Status.STATUS_ERROR);
this.workLatch.countDown();
} catch (SQLException e)
{
throw (new WorkloadException(e));
}
}
/**
* Mark the specified URL as successfully processed.
*
* @param url
* The URL to mark as processed.
* @throws WorkloadException
* Thrown if the specified URL could not be
* marked.
*/
public void markProcessed(URL url) throws WorkloadException
{
try
Search WWH ::




Custom Search