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 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 RespostasHow fix the error
3 Votos
9 RespostasWhat is an exception
3 Votos
2 RespostasTry/catch body
1 Voto
1 RespostaException
1 Voto
2 RespostasQuente hoje
Ошибка в приложении Sololearn
1 Votes
NEO V2.0
1 Votes
Best language?
0 Votes
you con help mi
1 Votes
Bro can you fix yt error?
0 Votes