14 Apr
Posted by: Christian Wimmer in: Common, JEDI Windows Security Code Lib
I found this very interesting article about exceptions. You should read “Ten Things (or more) You Might Not Know About Exception Handling in Delphi” (or get it from Google Cache) and learn why exception inheritance ist important. The same reason applies to the exceptions of the JWSCL. EJwsclSecurityException is the main exception inherited from generic Exception class. All the other exception are inherited from EJwsclSecurityException or another JWSCL exception. The following partial tree shows the inheritance of JWSCL exception classes:
Exception (Delphi)
So if you are going to catch EJwsclSecurityException and e.g. EJwsclAccessDenied you have to catch the second exception first because EJwsclSecurityException would also catch EJwsclAccessDenied.
WRONG order:
CORRECT order:
2 Responses
Jim McKeeth
14|Apr|2008 1The link to “Ten Things (or more) You Might Not Know About Exception Handling in Delphi” isn’t working. It appears the destination has some WordPress configuration file issues, or their database changed. If you can contact them and let them know you might want to.
Christian Wimmer
14|Apr|2008 2Use Google Cache to read the content .
Leave a reply