- Improve email notification cases for unexpected exceptions.
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
|
||||
|
||||
<bean id="exceptionHandlerResolver"
|
||||
class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver">
|
||||
class="com.wisemapping.mail.NotifyingExceptionResolver">
|
||||
<property name="defaultStatusCode" value="500"/>
|
||||
<property name="defaultErrorView" value="unexpectedError"/>
|
||||
<property name="exceptionMappings">
|
||||
@@ -65,6 +65,14 @@
|
||||
<prop key="java.lang.reflect.UndeclaredThrowableException">securityError</prop>
|
||||
</props>
|
||||
</property>
|
||||
<property name="exclude">
|
||||
<set>
|
||||
<value>java.lang.reflect.UndeclaredThrowableException</value>
|
||||
<value>com.wisemapping.exceptions.GoogleChromeFrameRequiredException</value>
|
||||
<value>com.wisemapping.exceptions.UnsupportedBrowserException</value>
|
||||
</set>
|
||||
</property>
|
||||
<property name="notificationService" ref="notificationService"/>
|
||||
</bean>
|
||||
|
||||
<bean id="viewResolver" class="org.springframework.web.servlet.view.UrlBasedViewResolver">
|
||||
|
Reference in New Issue
Block a user