Skip to content

Instantly share code, notes, and snippets.

@pdeschen
Last active December 18, 2015 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdeschen/5800796 to your computer and use it in GitHub Desktop.
Save pdeschen/5800796 to your computer and use it in GitHub Desktop.
rivr exception handling
VoiceXmlInputTurn inputTurn = DialogueUtils.doTurn(context, turn);
if (VoiceXmlEvent.hasEvent(VoiceXmlEvent.CONNECTION_DISCONNECT_HANGUP, inputTurn.getEvents())) {
throw new HangUp();
}
if (VoiceXmlEvent.hasEvent(VoiceXmlEvent.ERROR, inputTurn.getEvents())) {
throw new PlatformError(inputTurn.getEvents().get(0).getMessage());
}
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment