use of org.mule.runtime.api.notification.ExceptionNotification in project mule by mulesoft.
the class AbstractExceptionListener method fireNotification.
protected void fireNotification(Exception ex, CoreEvent event) {
if (enableNotifications) {
if (ex.getCause() != null && getCause(ex) instanceof SecurityException) {
fireNotification(new SecurityNotification((SecurityException) getCause(ex), SECURITY_AUTHENTICATION_FAILED));
} else {
Component component = null;
if (ex instanceof MessagingException) {
component = ((MessagingException) ex).getFailingComponent();
}
fireNotification(new ExceptionNotification(createInfo(event, ex, component), getLocation()));
}
}
}
Aggregations