R
Rajesh Abraham
I am running loop with calls different functions such as
SetHomeDrive, AddUserToGroup etc. Now if any of the
functions fails, I am just catching and throwing a new
error like throw new Exception("Failed to Set Home Drive")
etc.
All these errors which are propelled back to my loop are
then logged to file. Even if an error occours in one ore
more function, the loop continues execution so I deally I
would like to have unique flag for each errror, which can
be OR ed each time an error occurs and finally at the end
of my loop find from the error flag what all errors
occured. How can I acheive this.
Thanks,
Rajesh Abraham Chacko
SetHomeDrive, AddUserToGroup etc. Now if any of the
functions fails, I am just catching and throwing a new
error like throw new Exception("Failed to Set Home Drive")
etc.
All these errors which are propelled back to my loop are
then logged to file. Even if an error occours in one ore
more function, the loop continues execution so I deally I
would like to have unique flag for each errror, which can
be OR ed each time an error occurs and finally at the end
of my loop find from the error flag what all errors
occured. How can I acheive this.
Thanks,
Rajesh Abraham Chacko