Class DefaultErrorController

java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController
com.gsitm.ustra.java.mvc.error.DefaultErrorController
All Implemented Interfaces:
org.springframework.boot.web.servlet.error.ErrorController

@Controller @RequestMapping("${ustra.mvc.error.path:${server.error.path:${error.path:/error}}}") public class DefaultErrorController extends org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController
기본 오류 처리 컨트롤러
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes, List<org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver> errorViewResolvers, UstraMvcProperties ustraMvcProperties, org.springframework.beans.factory.ObjectProvider<WebPageRequestErrorResultHandler> webPageRequestErrorResultHandlerProvider)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    error(jakarta.servlet.http.HttpServletRequest request)
     
    protected Exception
    getException(@NotNull jakarta.servlet.http.HttpServletRequest request, boolean withDefaultException)
    request로부터 예외 객체 조회
    protected org.springframework.http.HttpStatus
    getStatus(jakarta.servlet.http.HttpServletRequest request, Exception exception)
    exception 객체에서 status 반환

    Methods inherited from class org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController

    getBooleanParameter, getErrorAttributes, getErrorsParameter, getMessageParameter, getStatus, getTraceParameter, resolveErrorView

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • DefaultErrorController

      public DefaultErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes, List<org.springframework.boot.autoconfigure.web.servlet.error.ErrorViewResolver> errorViewResolvers, UstraMvcProperties ustraMvcProperties, org.springframework.beans.factory.ObjectProvider<WebPageRequestErrorResultHandler> webPageRequestErrorResultHandlerProvider)
  • Method Details

    • error

      @RequestMapping(produces={"text/html","*/*"}) public Object error(jakarta.servlet.http.HttpServletRequest request)
    • getStatus

      protected org.springframework.http.HttpStatus getStatus(jakarta.servlet.http.HttpServletRequest request, Exception exception)
      exception 객체에서 status 반환
      Parameters:
      request -
      exception -
      Returns:
    • getException

      protected Exception getException(@NotNull @NotNull jakarta.servlet.http.HttpServletRequest request, boolean withDefaultException)
      request로부터 예외 객체 조회
      Parameters:
      request -
      Returns: