Skip to content

Instantly share code, notes, and snippets.

@guid-empty
Created February 25, 2021 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guid-empty/00c6be42c75853548dbdb437b1fe776c to your computer and use it in GitHub Desktop.
Save guid-empty/00c6be42c75853548dbdb437b1fe776c to your computer and use it in GitHub Desktop.
Dart.Language.Exceptions
void main() {
try {
int divisionPart = 0;
int someVar = 11;
print(someVar ~/ divisionPart);
} catch (e) {
print('Произошла ошибка $e');
} finally {
print('но приложение не упало');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment