Created
February 25, 2021 16:33
-
-
Save guid-empty/00c6be42c75853548dbdb437b1fe776c to your computer and use it in GitHub Desktop.
Dart.Language.Exceptions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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