This function is called only when an error occurs.
Parameters:
exception - the actual error exception
transferCompleted
public void transferCompleted()
This function is called once the transfer is completed
either successfully or because of a failure. If an error occurred
during the transfer the transferError() function is called first.