Class NotificationExceptionAdvisor
java.lang.Object
com.broadleafcommerce.notification.web.exception.NotificationExceptionAdvisor
@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class)
public class NotificationExceptionAdvisor
extends Object
General exception handler registry for handlers not exclusive to a single controller.
- Author:
- BroadleafCommerce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
handleInvalidNotification
(Exception ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
handleSendNotificationError
(Exception ex, org.springframework.web.context.request.WebRequest request) protected void
protected void
-
Constructor Details
-
NotificationExceptionAdvisor
public NotificationExceptionAdvisor()
-
-
Method Details
-
handleSendNotificationError
@ExceptionHandler(SendNotificationException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleSendNotificationError(Exception ex, org.springframework.web.context.request.WebRequest request) -
handleInvalidNotification
@ExceptionHandler(InvalidNotificationException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidNotification(Exception ex, org.springframework.web.context.request.WebRequest request) -
logDebug
-
logError
-