Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #11934 > unrolled thread

Is there a way to check the state of the error handler?

Started byJJ <jj4public@vfemail.net>
First post2018-05-15 13:04 +0700
Last post2018-05-20 12:09 +0200
Articles 6 on this page of 26 — 5 participants

Back to article view | Back to microsoft.public.scripting.vbscript


Contents

  Is there a way to check the state of the error handler? JJ <jj4public@vfemail.net> - 2018-05-15 13:04 +0700
    Re: Is there a way to check the state of the error handler? "Auric__" <not.my.real@email.address> - 2018-05-15 06:55 +0000
      Re: Is there a way to check the state of the error handler? JJ <jj4public@vfemail.net> - 2018-05-15 22:10 +0700
    Re: Is there a way to check the state of the error handler? "Mayayana" <mayayana@invalid.nospam> - 2018-05-15 09:14 -0400
      Re: Is there a way to check the state of the error handler? JJ <jj4public@vfemail.net> - 2018-05-15 22:22 +0700
        Re: Is there a way to check the state of the error handler? "Mayayana" <mayayana@invalid.nospam> - 2018-05-15 11:53 -0400
    Re: Is there a way to check the state of the error handler? "R.Wieser" <address@not.available> - 2018-05-15 17:26 +0200
      Re: Is there a way to check the state of the error handler? JJ <jj4public@vfemail.net> - 2018-05-16 16:52 +0700
        Re: Is there a way to check the state of the error handler? "R.Wieser" <address@not.available> - 2018-05-16 12:42 +0200
          Re: Is there a way to check the state of the error handler? "Mayayana" <mayayana@invalid.nospam> - 2018-05-16 08:34 -0400
            Re: Is there a way to check the state of the error handler? "R.Wieser" <address@not.available> - 2018-05-16 17:36 +0200
              Re: Is there a way to check the state of the error handler? JJ <jj4public@vfemail.net> - 2018-05-19 00:03 +0700
                Re: Is there a way to check the state of the error handler? "Mayayana" <mayayana@invalid.nospam> - 2018-05-18 13:18 -0400
                  Re: Is there a way to check the state of the error handler? "R.Wieser" <address@not.available> - 2018-05-18 20:15 +0200
                    Re: Is there a way to check the state of the error handler? "Mayayana" <mayayana@invalid.nospam> - 2018-05-18 15:12 -0400
                      Re: Is there a way to check the state of the error handler? "R.Wieser" <address@not.available> - 2018-05-19 11:23 +0200
                        Re: Is there a way to check the state of the error handler? "Mayayana" <mayayana@invalid.nospam> - 2018-05-19 10:28 -0400
                          Re: Is there a way to check the state of the error handler? "R.Wieser" <address@not.available> - 2018-05-19 22:19 +0200
                Re: Is there a way to check the state of the error handler? "R.Wieser" <address@not.available> - 2018-05-18 20:06 +0200
                  Re: Is there a way to check the state of the error handler? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-05-18 23:27 +0200
                    Re: Is there a way to check the state of the error handler? "R.Wieser" <address@not.available> - 2018-05-19 12:15 +0200
                      Re: Is there a way to check the state of the error handler? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-05-19 21:30 +0200
                        Re: Is there a way to check the state of the error handler? "R.Wieser" <address@not.available> - 2018-05-19 22:21 +0200
                          Re: Is there a way to check the state of the error handler? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-05-19 22:32 +0200
                            Re: Is there a way to check the state of the error handler? "R.Wieser" <address@not.available> - 2018-05-20 11:06 +0200
                              Re: Is there a way to check the state of the error handler? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-05-20 12:09 +0200

Page 2 of 2 — ← Prev page 1 [2]


#11954

From"R.Wieser" <address@not.available>
Date2018-05-19 12:15 +0200
Message-ID<pdotft$1ft2$1@gioia.aioe.org>
In reply to#11950
Evertjan,

>> Also, outside of an "catch the error" block the error object seems to be
>> rather unuseful: The system than catches it and aborts the script,
>> before you are able to access the error object.
>
> Well, you can test any number of statements after a single 'on error 
> resume
> next' and outut or store the Err.Number.

Yep, you could do that.  And I'm sure there is a possibility that such a 
construct will be used by someone somewere.   Though I doubt that the 
contents of ErrNumber4 will be of much interest when the contents of 
ErrNumber1 have found to be non-zero.

And that "just grab the errors, but chug on regardless" approach is quite 
dangerous when using anything else than the most simple of things (like 
calculations).

So personaly I would try to skip to the end of the "catch" block (using an 
"early death" OR comparision alike mechanism) when encountering the first 
error.  *Much* safer. :-)


But I have to ask, what part of the quoted message did you reply to ?

Regards,
Rudy Wieser

[toc] | [prev] | [next] | [standalone]


#11958

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2018-05-19 21:30 +0200
Message-ID<XnsA8E7DAD4D1A71eejj99@194.109.6.166>
In reply to#11954
"R.Wieser" <address@not.available> wrote on 19 May 2018 in 
microsoft.public.scripting.vbscript:

> But I have to ask, what part of the quoted message did you reply to ?

Sorry, I disagree, there is no obligation.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#11960

From"R.Wieser" <address@not.available>
Date2018-05-19 22:21 +0200
Message-ID<pdq0vo$1cve$1@gioia.aioe.org>
In reply to#11958
Evertjan,

> Sorry, I disagree, there is no obligation.

I have *no* idea why you said that.

Regards,
Rudy Wieser

[toc] | [prev] | [next] | [standalone]


#11961

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2018-05-19 22:32 +0200
Message-ID<XnsA8E7E549434FFeejj99@194.109.6.166>
In reply to#11960
"R.Wieser" <address@not.available> wrote on 19 May 2018 in 
microsoft.public.scripting.vbscript:

> 
> Evertjan,
> 
>> Sorry, I disagree, there is no obligation.
> 
> I have *no* idea why you said that.

If you skip the line I was responding on, 
such conversation is not very useful, Rudy.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#11962

From"R.Wieser" <address@not.available>
Date2018-05-20 11:06 +0200
Message-ID<pdrdqp$1bmu$1@gioia.aioe.org>
In reply to#11961
Evertjan,

> If you skip the line I was responding on,
> such conversation is not very useful, Rudy.

You mean, this line "But I have to ask, what part of the quoted message did 
you reply to ?"

Pray tell, how was/is your "Sorry, I disagree, there is no obligation." a 
response to it ?

No, you skipped responding to the question itself as well as  answering to 
it, but went for the end position instead.  A defensive one I might add 
(which makes me think you know very well what went wrong).

And "you keep using that word.  I don't think it means what you think it 
means" (from "the princess bride").

Ref: https://en.oxforddictionaries.com/definition/obligation

No, you are not legally bound to anything.  Still, although you are Duch (as 
am I) we still converse in English.  I wonder why ...    Some kind of 
obligation perhaps ?     And you copy-pasted something from my post into 
yours.  Another kind of obligation perhaps ?    You also put my name ontop 
of it ... yadayadayada.

And what you did violates *several* obligations.   With the major one being 
that you're supposed to keep the conversation in an order which your 
conversation partner can follow.  Which was what my question was all about: 
I did not see how what you quoted had any bearing on what you followed it up 
with, and I wondered if I missed something.    It turns out I didn't, as 
there was nothing to miss ...

But in that case, why did you copy-and-paste some random contents and put it 
above your problem description ?

Better yet, why did you pick me as adressee, as *nothing* in the problem you 
posted had any bearing on what I said or even might have indicated.   Heck, 
I've never even reference the "err.clear" command, and pretty-much the only 
one I did have an opinion on is not part (directly or indirectly) of your 
problem description.

And to make matters worse, the clearing-or-not of the error object by the 
disabeling of the error catching command would not change anything to the 
problem you described.

So, I think you are now able to understand my confusion about why you wrote 
that, as well as why you adressed it to me.   Nevertheless, I gave you "the 
benefit of the doubt", and responded to it as if I where actually the cause 
of it.   With only a single line asking for clarification.

... And you thought that going defiant would be the best course of action ? 
As far as I can tell you made a mistake bub, nothing more than that.  The 
world didn't end, and I have no intention to haunt you for it.     I just 
feel sorry that you feel that you had to respond the way you did.

Live long, and prosper (at least long enough to see the erring of your ways 
:-) )

(connection closed)

Regards,
Rudy Wieser

[toc] | [prev] | [next] | [standalone]


#11963

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2018-05-20 12:09 +0200
Message-ID<XnsA8E87BB84D6C5eejj99@194.109.6.166>
In reply to#11962
"R.Wieser" <address@not.available> wrote on 20 May 2018 in
microsoft.public.scripting.vbscript: 

>> If you skip the line I was responding on,
>> such conversation is not very useful, Rudy.
> 
> You mean, this line "But I have to ask, what part of the quoted message
> did you reply to ?"
> 
> Pray tell,

No, I don't pray, not even when ordered to!

> how was/is your "Sorry, I disagree, there is no obligation."
> a response to it ?

You seem not to understand how quoting works.

"I have to ask" is that not a statement of obligation?


-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | microsoft.public.scripting.vbscript


csiph-web