Wish Would like to have "LastException.ErrorNum"

Diceman

Active Member
Licensed User
I would like to have "LastException.ErrorNum" in addition to "LastException.Message".

When Delphi throws an exception, we often look for the type of exception that was thrown and handle it differently.

When the program encounters an exception, I would like to be able to determine what type of exception it is by examining an error number. The exception could be the result of an index error, db error, conversion error etc. and if I knew the error number, I could do additional processing or error handling. I don't want to have to parse the Message because a foreign language may complicate things or the message may change later.

TIA
 
Top