Re: HOWTO: Re-raise an error?
- From: "Justin Piper" <jpiper@xxxxxxxxx>
- Date: Tue, 05 Sep 2006 14:50:55 GMT
On Mon, 04 Sep 2006 12:45:31 -0500, Ian Boyd <ian.msnews010@xxxxxxxxxxxx> wrote:
The maddening, pull out your hair, scream at the world, attack co-workers
with a baseball bat, frustrating part of all this is that these subtlties
are not documented, and no examples anywhere deal with real world exception
handling.
Well, if you look at any of the scripts Microsoft ships with IIS, error handling is done by just checking Err.Number anywhere they expect something to have failed. That's not too surprising, since that's pretty much how you handle errors in C/C++ -- you religiously check the HRESULT returned by whatever you called. From that perspective, examples of "real world exception handling" are documented, but there are more practical ways of doing it.
What would be really nice would be something along the lines of the Python Cookbook[1] on ActiveState's website. Let people who are using the language in the field submit their idiomatic recipes. Ideally, if you know what you're looking for in terms of another language (e.g. try/catch/finally), you could find out whether anyone's thought of a good way to simulate it in VBScript.
[1] ActiveState O'Reilly Python cookbook code samples ratings review
http://aspn.activestate.com/ASPN/Cookbook/Python
--
Justin Piper
Bizco Technologies
http://www.bizco.com/
.
- References:
- HOWTO: Re-raise an error?
- From: Ian Boyd
- Re: HOWTO: Re-raise an error?
- From: Michael Harris \(MVP\)
- Re: HOWTO: Re-raise an error?
- From: Ian Boyd
- Re: HOWTO: Re-raise an error?
- From: Michael Harris \(MVP\)
- Re: HOWTO: Re-raise an error?
- From: Ian Boyd
- HOWTO: Re-raise an error?
- Prev by Date: Re: Application to be called - runas Administrator
- Next by Date: Re: Reading EventLog record information Assistance please...
- Previous by thread: Re: HOWTO: Re-raise an error?
- Next by thread: Help WMI Error in VBS
- Index(es):
Relevant Pages
|