Class SandboxExceptionAdvisor
java.lang.Object
com.broadleafcommerce.sandbox.web.endpoint.exception.SandboxExceptionAdvisor
@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class)
public class SandboxExceptionAdvisor
extends Object
General exception handler registry for handlers not exclusive to a single controller.
- Author:
- Jeff Fischer, Samarth Dhruva (samarthd)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
handleArchiveChangeSummaryException
(ArchiveChangeSummaryException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
handlePreviewTokenCreationException
(Exception ex, org.springframework.web.context.request.WebRequest request)
-
Constructor Details
-
SandboxExceptionAdvisor
public SandboxExceptionAdvisor()
-
-
Method Details
-
handlePreviewTokenCreationException
@ExceptionHandler(PreviewTokenCreationException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handlePreviewTokenCreationException(Exception ex, org.springframework.web.context.request.WebRequest request) -
handleArchiveChangeSummaryException
@ExceptionHandler(ArchiveChangeSummaryException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleArchiveChangeSummaryException(ArchiveChangeSummaryException ex, org.springframework.web.context.request.WebRequest request)
-