Every developer who interacts with exceptions knows the problem: You need a unique number for your exception to determine it in the whole application.
A smart concept is to use the unix timestamp at the time of implementation of the exception as a application wide unique number.
This is used by some open source projects e.g. TYPO3 and FLOW.
Robert Lemke described this concept in a blog post: Exceptional usefulness.