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