Exception Handling

There is a way for handling exception in global level and how can i get which exception occurs.
Where it stores.

This is common for all exceptions. I want to know which Exception occurs specifically.