getErrorOrThrow method

E getErrorOrThrow()

Implementation

E getErrorOrThrow() {
  if (_error == null) throw Exception('Error value is null');

  return _error!;
}