Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exception Handling
Message
 
 
To
13/04/2007 13:17:43
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB.NET 1.1
Miscellaneous
Thread ID:
01215534
Message ID:
01215720
Views:
15
>Thanks for the input. I have started using exceptions instead of error codes. >They seem to work much better. I have read where it is slower and error codes >should be used, but that doesn't seem to be the popular opinion.

They just seem?:) I hated asp x.0 (classic) for that particular reason.
You are going to appreciate exceptions more if you do Oracle PL/SQL instead of T-SQL.

Build your own exceptions for domain logic.
When catching try to catch starting with the most specific one rather than Exception ex.
Use finally for closing resources.
When I build classes/components that are used by other folks, I throw mostly domain exceptions and then the caller should be dealing with catching the exceptions and rethrowing them.
Previous
Reply
Map
View

Click here to load this message in the networking platform