Returns the exception if it is set.
public abstract Exception getException ()
RequestStateElement element; element.getException();