Exception error codes

A practice I have engaged in for a long time now is adding error codes to any custom or handled exceptions that are thrown on purpose in anapplication. The purpose of these error codes is to act as an...