Re: C# Flow Control
> I think the issue in the original post is the confusion of the term
"return
> codes" versus "return references".
>
> Exception should be used to replace "return codes" where a return code
> defines a type of unexpected problem (DBMS is down, network unreachable).
> For other flow control you can still return something of value - its just
> not called a return code necessarily :-)
Possibly. When I think of return codes, I think of a method returning an
int, then a dirty great switch statement to decide what to do.
Tim Haughton
.
Relevant Pages
- Re: [PATCH 24/61] sysfs: make sysfs_put() ignore NULL sd
... compared to the confusion overhead. ... NULL put is usually used to simplify error handling / cleanup codes. ... The same thing holds for kobject/driver model interface. ... changing generic refcounting API functions (which is what ... (Linux-Kernel) - Re: D3 and *nix - Using os dirs for program files
... Assume you mean translation data? ... Codes? ... use an x in line 1 so there's no confusion. ... Otoh, in these days of infinite cpu speed, opening another dedicated file is ... (comp.databases.pick) - Re: Is this the Right way TO release COM interface ?
... for the many APIs that return failure codes for non-exceptional ... function that converts an HRESULT to an exception. ... Non-existance of the value must be ... (microsoft.public.vc.language) - Re: exception error when accessing SQL database
... Catch Ex as Exception ... what you mean by asp.net environment? ... > together with the sql codes, ... > extracted from the database on a web form. ... (microsoft.public.data.ado) - Re: decipher error messages/codes
... This indicates that a kernel-mode program generated an exception which the error handler did not catch. ... For a complete list of exception codes, see the ntstatus.h file located in the inc directory of the Windows DDK. ... make sure that any new hardware installed is listed on the Microsoft Windows Hardware Compatibility List. ... (microsoft.public.windowsxp.help_and_support) |
|