Q&A Discussões
exeption finally
1 Voto
3 RespostasException handling
2 Votos
2 RespostasWhat is the problem?
1 Voto
6 Respostasjava Exception
2 Votos
3 RespostasHow fix the error
3 Votos
9 RespostasIf 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 Votos
2 RespostasWhat is an exception
3 Votos
2 RespostasTry/catch body
1 Voto
1 RespostaException
1 Voto
2 RespostasQuente hoje
How to improve code readability
0 Votes
App
1 Votes
Solved Grouping data
0 Votes
Regarding course
0 Votes
I NEED to make a game
0 Votes
Mentor
0 Votes