SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Error Conditions

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Error Conditions
Author Message
Michael Tuszynski



Joined: 07 May 2004
Posts: 30

Post Error Conditions Reply with quote

Question on error handling:

In most of my JAL scripts, I am using the following format for error handling:

OnErrorGoto ERROREND

{script here}
{condition i want checked)
RaiseError("This is the error message I want when a condition I want fails")

ERROREND:
GetLastError(message)
Dim subj, "error subject"
Mailsend(profile, pass, subj, message, recipients)
Exit

In this scenario, it seems that the 24x7 GUI only sees those errors as "alerts" or
warnings. I wish to use the 'retry job on fail' condition within the GUI, however,
I do not believe the GUI is receiving an ERRROR event as I have described.

How do I get the GUI to give a actual ERROR state so that the retry logic in the job
will start?

Fri Jul 30, 2004 7:10 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Error Conditions Reply with quote

That's correct, by calling OnErrorGoto procedure you are taking over the default error handling.

If you wish to restore the default error handling you can call OnErrorStop. For example, at the end of your error handling block add OnErrorStop abnd then RaiseError with your customer error message.

: Question on error handling: In most of my JAL scripts, I am using the
: following format for error handling: OnErrorGoto ERROREND

: {script here}
: {condition i want checked)
: RaiseError("This is the error message I want when a condition I want
: fails")

: ERROREND: GetLastError(message)
: Dim subj, "error subject"
: Mailsend(profile, pass, subj, message, recipients)
: Exit

: In this scenario, it seems that the 24x7 GUI only sees those errors as
: "alerts" or
: warnings. I wish to use the 'retry job on fail' condition within the GUI,
: however,
: I do not believe the GUI is receiving an ERRROR event as I have described.

: How do I get the GUI to give a actual ERROR state so that the retry logic in
: the job
: will start?

Fri Jul 30, 2004 9:20 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.