* Send an error event message to all CopyTableListeners
* @param type the type of the ErrorEvent.
* @param e the exception that was encountered.
*/
private void sendErrorEvent(int type, Exception e) {
ErrorEvent event = new ErrorEvent(prov, type);
event.setException(e);
Iterator<CopyTableListener> i = listeners.iterator();
while (i.hasNext()) {
CopyTableListener listener = i.next();
listener.handleError(event);
}