Returns the Exception if it was set.
public Exception getException ()
If not, the returned value will be null.