NoteApp-Clean-Architecture icon indicating copy to clipboard operation
NoteApp-Clean-Architecture copied to clipboard

Avoid catches without on clauses

Open t1ooo opened this issue 3 years ago • 0 comments

https://dart-lang.github.io/linter/lints/avoid_catches_without_on_clauses.html https://dart-lang.github.io/linter/lints/avoid_catching_errors.html

void main() {
  try {
    throw OutOfMemoryError();
  } catch (e) {
    print(e);
  }
  print('everything is fine');
}

t1ooo avatar Dec 29 '21 06:12 t1ooo