I am having a nasty bug that I simply cannot solve without having to read through the whole model form logic in django:

[django custom model field in admin form gives invalid choice error](https://stackoverflow.com/questions/22852301/django-custom-model-field-in-admin-form-gives-invalid-choice-error)

Basically what is happening is some where in the django model form process code raised a ValidationError and then it was caught in the form process and displaying the error message.

Is it possible to track a particular type of Exception has been raised even if it has been handled inside the program?

For example:

a file within a large codebase, somewhere in this file raised an exception and also being caught, I don't know where this file is and which line...

```
1 def process_form():
2  ...logic...
3  raise ValudationError()
4  ...logic...
5  except ValudationError:
6    ...handle...

```

Some tools that shows me:
ValudationError raised in line 3