Class AdminUserExceptionAdvisor

java.lang.Object
com.broadleafcommerce.adminuser.resource.web.endpoint.exception.AdminUserExceptionAdvisor

@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class) public class AdminUserExceptionAdvisor extends Object
General exception handler registry for handlers not exclusive to a single controller.
Author:
Samarth Dhruva (samarthd)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils
     
    org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
    handleApplicationContextException(Exception ex, org.springframework.web.context.request.WebRequest request)
     
    org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>
    handleApplicationIdException(Exception ex, org.springframework.web.context.request.WebRequest request)
     
    protected void
    logDebug(Exception ex, org.springframework.web.context.request.WebRequest request)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated in favor of central logging managed by ExceptionHandlerUtils.
    void
    setExceptionHandlerUtils(com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils exceptionHandlerUtils)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AdminUserExceptionAdvisor

      public AdminUserExceptionAdvisor()
  • Method Details

    • handleApplicationIdException

      @ExceptionHandler(InvalidApplicationIdException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleApplicationIdException(Exception ex, org.springframework.web.context.request.WebRequest request)
    • handleApplicationContextException

      @ExceptionHandler(InvalidApplicationContextException.class) public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleApplicationContextException(Exception ex, org.springframework.web.context.request.WebRequest request)
    • logDebug

      @Deprecated(forRemoval=true) protected void logDebug(Exception ex, org.springframework.web.context.request.WebRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated in favor of central logging managed by ExceptionHandlerUtils.
    • getExceptionHandlerUtils

      protected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils getExceptionHandlerUtils()
    • setExceptionHandlerUtils

      @Autowired public void setExceptionHandlerUtils(com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils exceptionHandlerUtils)