getException method

CallException? getException()

Implementation

CallException? getException() {
  CallException? ex;
  if (isNetworkFailure) {
    ex = CallException((this as NetworkError<T>).cause);
  }
  if (isNetworkError) {
    ex = CallException((this as NetworkError<T>).cause);
  }
  return ex;
}