Is it possible to describe a specific exception in Python?

Viewed 23

Example: I get 'ValueError invalid literal for int() with base 10' error.

Question: Is it possible to write a more detailed 'try/except' exception than just 'except ValueError:' I mean to specify second part which is: 'invalid literal for int() with base 10' error'.

0 Answers
Related