Class FileUploadExceptionAdvice

java.lang.Object
org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver
org.springframework.web.servlet.handler.SimpleMappingExceptionResolver
org.broadleafcommerce.common.exception.FileUploadExceptionAdvice
All Implemented Interfaces:
org.springframework.core.Ordered, org.springframework.web.servlet.HandlerExceptionResolver

@ControllerAdvice public class FileUploadExceptionAdvice extends org.springframework.web.servlet.handler.SimpleMappingExceptionResolver
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     

    Fields inherited from class org.springframework.web.servlet.handler.SimpleMappingExceptionResolver

    DEFAULT_EXCEPTION_ATTRIBUTE

    Fields inherited from class org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver

    logger

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.web.servlet.ModelAndView
    handleMaxSizeException(org.springframework.web.multipart.MaxUploadSizeExceededException exc, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     

    Methods inherited from class org.springframework.web.servlet.handler.SimpleMappingExceptionResolver

    addStatusCode, applyStatusCodeIfPossible, determineStatusCode, determineViewName, doResolveException, findMatchingViewName, getDepth, getModelAndView, getModelAndView, getStatusCodesAsMap, setDefaultErrorView, setDefaultStatusCode, setExceptionAttribute, setExceptionMappings, setExcludedExceptions, setStatusCodes

    Methods inherited from class org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver

    buildLogMessage, getOrder, hasHandlerMappings, logException, prepareResponse, preventCaching, resolveException, setMappedHandlerClasses, setMappedHandlers, setOrder, setPreventResponseCaching, setWarnLogCategory, shouldApplyTo

    Methods inherited from class java.lang.Object

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

    • DEFAULT_ERROR_VIEW

      protected String DEFAULT_ERROR_VIEW
  • Constructor Details

    • FileUploadExceptionAdvice

      public FileUploadExceptionAdvice()
  • Method Details

    • handleMaxSizeException

      @ExceptionHandler(org.springframework.web.multipart.MaxUploadSizeExceededException.class) public org.springframework.web.servlet.ModelAndView handleMaxSizeException(org.springframework.web.multipart.MaxUploadSizeExceededException exc, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)