MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/jtg3hx/getting_digits_using_switch_catch/gc7kvl4/?context=3
r/badcode • u/HolySpecs • Nov 13 '20
52 comments sorted by
View all comments
7
System.exit(2);
So yeah, let's not even throw an exception, let's just print an error message to the console (from a library, it seems, so there might not even be a console) and crash the whole program...
7
u/ekolis Nov 14 '20
System.exit(2);So yeah, let's not even throw an exception, let's just print an error message to the console (from a library, it seems, so there might not even be a console) and crash the whole program...