Skip to content

Commit

Permalink
Change to rethrow (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
mk13 authored May 23, 2018
1 parent dcfc3d8 commit 7b1db22
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ bool exists(item) {
}
try {
return rootElementOf(item).exists;
} on PageLoaderException catch (e) {
// On PageLoaderException, throw it back.
throw e;
} on PageLoaderArgumentError catch (e) {
throw e;
} on PageLoaderException {
rethrow;
} on PageLoaderArgumentError {
rethrow;
} catch (_) {
throw new PageLoaderArgumentError.onWrongType('exists/notExists');
}
Expand Down

0 comments on commit 7b1db22

Please sign in to comment.