Class UnhandledExceptionController


  • @ControllerAdvice
    public class UnhandledExceptionController
    extends java.lang.Object
    처리되지 않은 예외를 로깅하고, 보고하기 위한 Exception Handler.
    Version:
    1.0
    Author:
    always0ne
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.slf4j.Logger logger  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void logging​(java.lang.Throwable throwable)
      ERROR 레벨로 로그 남기기.
      ErrorResponse reportError​(java.lang.Throwable throwable)
      걸러지지 않은 예외 로깅.
      • Methods inherited from class java.lang.Object

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

      • logger

        private static final org.slf4j.Logger logger
    • Constructor Detail

      • UnhandledExceptionController

        public UnhandledExceptionController()
    • Method Detail

      • reportError

        @ExceptionHandler(java.lang.Throwable.class)
        @ResponseStatus(INTERNAL_SERVER_ERROR)
        @ResponseBody
        public ErrorResponse reportError​(java.lang.Throwable throwable)
        걸러지지 않은 예외 로깅.
        Parameters:
        throwable - 걸러지지 않은 예외
        Returns:
        ErrorResponse
      • logging

        protected void logging​(java.lang.Throwable throwable)
        ERROR 레벨로 로그 남기기.
        Parameters:
        throwable - 걸러지지 않은 예외