Error info about try/catch

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Error info about try/catch

Post by ale870 » Thu Oct 23, 2014 9:26 am

Hello,

I'm using try/catch to detect some errors. This structure return some error numbers but I cannot "decode" them.
Please can you give me a reference to read them?

For example (trivial example):

Code: Select all

try
   get 5/0
catch err
  answer err
end try
I get:
379,337,6
223,337,1

So... ???

Klaus
Posts: 11260
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Error info about try/catch

Post by Klaus » Thu Oct 23, 2014 11:48 am

Hi ale870,

what you see are the hints rom the ERRORDIALOG, check the dictionary for more info.
...
The executionError parameter is a standard LiveCode error backtrace in the form:
<error-code>,<line-number>,<column-number>[,<hint>]
...

Best

Klaus

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Re: Error info about try/catch

Post by ale870 » Thu Oct 23, 2014 12:35 pm

Klaus wrote:Hi ale870,

what you see are the hints rom the ERRORDIALOG, check the dictionary for more info.
...
The executionError parameter is a standard LiveCode error backtrace in the form:
<error-code>,<line-number>,<column-number>[,<hint>]
...

Best

Klaus
Great thank you!
But the problem is not yet solved since, reading the documentation and making tests, error codes are stored inside revErrorDisplay, and that stack is available only when using the IDE (so I cannot get info during runtime :-(
It is crazy that I cannot include that stack while I distribute my application.
Any workaround?
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

Neurox66
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 120
Joined: Tue May 22, 2012 1:57 pm
Location: Vicenza (Italy)
Contact:

Re: Error info about try/catch

Post by Neurox66 » Thu Oct 23, 2014 1:10 pm

Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for printers | www.4pellicole.it

ale870
Posts: 250
Joined: Tue Apr 22, 2008 9:17 am
Contact:

Re: Error info about try/catch

Post by ale870 » Thu Oct 23, 2014 3:06 pm

Neurox66 wrote:Hi,

read this...

http://runtime-revolution.278305.n4.nab ... 53157.html

Paolo
Thank you! That RevOnline Error Lookup is amazing! I can extract and embed those error codes inside my app!
Thank you again, I solved my problem!
Runtime Revolution Widgets, tutorials, tips & tricks and more!
http://runrevwidgets.com/wiki

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”