handles incoming org.motechproject.hub.exception.restexception whenit occurs . concode_field_sep String HUB_BASE_URL concode_elem_sep SettingsFacade settingsFacade concode_elem_sep HubValidator hubValidator concode_elem_sep Logger LOGGER concode_elem_sep SubscriptionService subscriptionService concode_elem_sep ContentDistributionService contentDistributionService concode_field_sep void setSubscriptionService concode_elem_sep ContentDistributionService getContentDistributionService concode_elem_sep SubscriptionService getSubscriptionService concode_elem_sep String getPropertyValue concode_elem_sep void setContentDistributionService concode_elem_sep SettingsDTO getSettings concode_elem_sep void subscribe concode_elem_sep void publish concode_elem_sep void setHubValidator concode_elem_sep void saveSettings concode_elem_sep HubValidator getHubValidator
HubError function ( RestException arg0 , HttpServletResponse arg1 ) { HubError loc0 = new HubError ( ) ; arg1 . setStatus ( arg0 . getHttpStatus ( ) . value ( ) ) ; loc0 . setErrorCode ( String . valueOf ( arg0 . getHubException ( ) . getErrorCode ( ) ) ) ; loc0 . setErrorMessage ( arg0 . getHubException ( ) . getErrorMessage ( ) ) ; loc0 . setApplication ( HubConstants . APP_NAME ) ; return loc0 ; }