Jump to content

how can I catch a exception !?


Recommended Posts

hy guys,

just wanne to ask how I catch a exeption in autoit. a kind of "try .... exception .... finally" block.

I have a application wich copys the local outlook pst stuff over to a imap server - it goes throug every folder and copies it.

it works most of the time - but sometime there is an exception (some com-related stuff - i think it has to do with the folder name it tries to copy)

and the hole script aborts. so i have to search where it has abortet and copy over the rest by hand - this sucks.

is there a way to cat such errors and make shure my script doesn't abort !?

Thanks

Link to comment
Share on other sites

  • Developers

hy guys,

just wanne to ask how I catch a exeption in autoit. a kind of "try .... exception .... finally" block.

I have a application wich copys the local outlook pst stuff over to a imap server - it goes throug every folder and copies it.

it works most of the time - but sometime there is an exception (some com-related stuff - i think it has to do with the folder name it tries to copy)

and the hole script aborts. so i have to search where it has abortet and copy over the rest by hand - this sucks.

is there a way to cat such errors and make shure my script doesn't abort !?

Thanks

Did you define a Com Error Handler ?

Look here for it or in the helpfile : http://www.autoitscript.com/autoit3/docs/intro/ComRef.htm

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...