Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning an object back?
Message
From
21/02/2013 02:38:42
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01566475
Message ID:
01566639
Views:
53
Create a custom error and throw it.

Return a void. If an error isn't thrown, it was successful. Or, return an enum.

>In the code we do have try / catch. In the catch section we set status code and message to return. The question is - how the caller should know if the command was successful or not? We don't want to pass the exception all the way up.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform