cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1678
Views
8
Helpful
5
Replies

Is it possible to Catch all error ?

chanon.wn
Level 1
Level 1

Hello,

     Currently i can't find a way to catch all of the error.

     I think vxml error is find as i can catch it via HotEvent and has Exit state to continue the flow like transfer to CSR.

     But the problem is how to catch global Java exception for example, stock element like SayItSmart or custom class that throw exception when invoke.

     Is it possible to Catch all error? Set Error Element is not the choice as it has no exit state.

1 Accepted Solution

Accepted Solutions

Angelina Talley
Level 5
Level 5

Actually, Set Error Element is the right answer. It will catch all uncaught exceptions and return the call to ICM (go to CSR if you like). I find it helpful to set a special value in caller_input or one of the other FromExtVXML fields to indicate this is what happened and handle it appropriately in the ICM script.

View solution in original post

5 Replies 5

Angelina Talley
Level 5
Level 5

Actually, Set Error Element is the right answer. It will catch all uncaught exceptions and return the call to ICM (go to CSR if you like). I find it helpful to set a special value in caller_input or one of the other FromExtVXML fields to indicate this is what happened and handle it appropriately in the ICM script.

janinegraves
Spotlight
Spotlight

It depends what version of Studio/CVP you have. In Studio 10.5 they've added an Events tab to every element (and to the Start of Call) so you can catch Java exceptions and follow an exit state to provide code within the application.

If you're using something older than 10.5 then there not many options

1) use an Error Element so at least you can return information to ICM about the caller, where to queue, etc

or

2) Use Java to extend Cisco's most troublesome elements (like the Voice Elements that might cause Say it Smart exceptions to occur) to execute their runtime code within a try/catch block. You could add an exit state to follow if you catch an exception.

or

3) Upgrade to 10.5

Hi there,

How do you add a new exit state to a Voice Element using java if by default only 3 exit states are shown in the call studio tool: done, max_noinput and max_nomatch?

I'm trying to catch a SayItSmart exception but I haven't been able to.  If you have a java code example that would be great. 

 

Thanks. 

 

Carlos Trivino

chanon.wn
Level 1
Level 1

So look like if CVP version is lower than 10.5 best choice is

1. Use Error Element and select Queue from ICM in case of Cisco Exception (SayItSmart etc.).

2. Catch all Java Exception in source code and have a Decision Element to check whatever it's error or not.

A little pain but it can be done ...

thanks you.

Yes, you can try to pre-process data to prevent getting some of the Say

it Smart exceptions.

For example, before executing a Digits Say it Smart, check the variable

exists and doesn't contain *

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: