Last active
December 18, 2015 14:58
-
-
Save pdeschen/5800796 to your computer and use it in GitHub Desktop.
rivr exception handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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