001/* 002 * Copyright (c) 2013 Nu Echo Inc. All rights reserved. 003 */ 004 005package com.nuecho.rivr.voicexml.servlet; 006 007import com.nuecho.rivr.voicexml.turn.last.*; 008 009/** 010 * Error handler generating an empty <exit> element. 011 * 012 * @author Nu Echo Inc. 013 */ 014public class DefaultErrorHandler implements VoiceXmlErrorHandler { 015 @Override 016 public VoiceXmlLastTurn handleError(Throwable error) { 017 return new Exit("error"); 018 } 019}