Re: What Does Error Return ?
Re: What Does Error Return ?
- Subject: Re: What Does Error Return ?
- From: Christopher Stone <email@hidden>
- Date: Fri, 13 Mar 2015 11:32:11 -0500
On Mar 13, 2015, at 10:28, Luther Fuller <email@hidden> wrote:Is there any way to obtain the name of the handler where an error occurs ?
______________________________________________________________________
Hey Luther,
No. AppleScript will NOT report a backtrace for an error.
You have to roll-your-own.
on myError() try 1 / 0 on error e error "Error in handler myError()" & return & return & e end try end myError
myError()
There's probably a more elegant method, but this is the sort of thing I do.
-- Best Regards, Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden