Error handling

Dedicated forum for the visual 'drag and drop' voice application designer that allows easy creation of advanced voice applications without programming knowledge

Moderators: kevin, 3CX staff

Error handling

Postby SWSDEV » Tue Oct 20, 2009 4:27 pm

When catching an exception, I'm logging the error to the database in the error handling workflow.

However none of the project error variables are available when I try to select the variables I want.

What I'd like to do is get those errors so I can log them.

I want to also trap the exception messages returned from custom code components.
Shahzad Qureshi
SWS Development
Salt Lake City - USA
Custom 3CX integration
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 151
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: Error handling

Postby VAD_Support » Tue Oct 20, 2009 5:20 pm

Variables project$.CurrentErrorName$ and project$.CurrentErrorDescription$ are added by the debugger, and are only available in the debug window. You can not use those variables in the callflow.

Unfortunately there is no way to get that information in the callflow in current version. We may add it in future releases. Until then, if you want to use it for external code execution, maybe an option could be catch the error inside the component and return it as an output parameter or return value.
VAD_Support
Expert
Expert
 
Posts: 146
Joined: Thu Aug 06, 2009 5:29 pm

Re: Error handling

Postby SWSDEV » Thu Oct 22, 2009 10:52 am

Yes, that is possibility. Thanks.
Shahzad Qureshi
SWS Development
Salt Lake City - USA
Custom 3CX integration
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 151
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA

Re: Error handling

Postby VAD_Support » Fri Nov 13, 2009 7:12 pm

Hi,

The latest version of the VAD allows quering those variables in runtime (and not only in the debug window).

So, now you can know the cause of the error, and log it to a database or whatever you need...

Thanks for your feedback!
VAD_Support
Expert
Expert
 
Posts: 146
Joined: Thu Aug 06, 2009 5:29 pm

Re: Error handling

Postby SWSDEV » Fri Nov 27, 2009 6:53 am

Perfect, thank you.
Shahzad Qureshi
SWS Development
Salt Lake City - USA
Custom 3CX integration
801-938-7712
swsdev.com
SWSDEV
Expert
Expert
 
Posts: 151
Joined: Sat Feb 23, 2008 6:51 am
Location: Salt Lake City, Utah - USA


Return to 3CX Voice Application Designer (VAD)

Who is online

Users browsing this forum: No registered users and 0 guests