exception method

Exception exception()

Implementation

Exception exception() {
  if (!isFailure()) throw Exception("Could not get exception of Success Result");
  return (this as _Failure).error;
}