String function ( IvrTemplateException arg0 , HttpServletResponse arg1 ) { LOGGER . error ( "srini_string" , arg0 ) ; if ( arg0 . getErrorCode ( ) != null ) { arg1 . setStatus ( arg0 . getErrorCode ( ) . value ( ) ) ; } else { arg1 . setStatus ( HttpStatus . INTERNAL_SERVER_ERROR . value ( ) ) ; } return arg0 . getMessage ( ) ; }
handles the org.motechproject.ivr.exception.ivrtemplateexception . the error code from the exception will be return this allows templates to manipulate the error code , code 500 is returned if it is not set . the message of the exception will be returned as the response body . concode_field_sep ConfigService configService concode_elem_sep StatusMessageService statusMessageService concode_elem_sep Logger LOGGER concode_elem_sep TemplateService templateService concode_elem_sep String LOGSYSTEM_CLASS concode_elem_sep EventRelay eventRelay concode_elem_sep String LOGSYSTEM_LOGGER concode_elem_sep String LOG4J concode_elem_sep MDSLookupService mdsLookupService concode_elem_sep BundleContext bundleContext concode_elem_sep CallDetailRecordDataService callDetailRecordDataService concode_field_sep void setUpVelocityProperties concode_elem_sep void setBundleContext concode_elem_sep void setStatusMessageService concode_elem_sep String handleNotFoundException concode_elem_sep void setConfigService concode_elem_sep List<Template> updateTemplates concode_elem_sep void setCallDetailRecordDataService concode_elem_sep String handle concode_elem_sep void setEventRelay concode_elem_sep List<Template> getTemplates concode_elem_sep void setTemplateService concode_elem_sep String handleException concode_elem_sep void setMdsLookupService