Discussioni Q&A
exeption finally
1 Voto
3 RisposteException handling
2 Voti
2 RisposteWhat is the problem?
1 Voto
6 Rispostejava Exception
2 Voti
3 RisposteIf except can handle common errors very well, doesn't that make the use of raise redundant inside of a try-except block?
For example:
try:
print( 5 / 0 )
except ZeroDivisionError:
raise ValueError("An error occurred!")
What's the difference if we handle it this way:
try:
print( 5 / 0 )
except (ZeroDivisionError, ValueError):
print("An error occurred!")
3 Voti
2 RisposteHow fix the error
3 Voti
9 RisposteWhat is an exception
3 Voti
2 RisposteTry/catch body
1 Voto
1 RispostaException
1 Voto
2 RispostePopolare oggi
Decorators in python.
2 Votes
Need help
1 Votes
Salut tout le monde
2 Votes
Pointers in c#
1 Votes
How to install Bcrypt here
1 Votes
Please click me
0 Votes
Hello !
0 Votes