With Python, I could get the name of the exception easily as follows.
- run the code, i.e. x = 3/0 to get the exception from python
- "ZeroDivisionError: integer division or modulo by zero" tells me this is ZeroDivisionError
- Modify the code i.e. try: x=3/0 except ZeroDivisionError: DO something
Is there any similar way to find the exception name with C++?
When I run the x = 3/0, the compiled binary just throws 'Floating point exception', which is not so useful compared to python.