File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
src/main/java/com/prgrms/mukvengers/global/exception Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 44
55import javax .servlet .http .HttpServletRequest ;
66
7- import org .springframework .beans .factory .annotation .Value ;
87import org .springframework .http .ResponseEntity ;
98import org .springframework .validation .BindException ;
109import org .springframework .web .HttpRequestMethodNotSupportedException ;
1514import org .springframework .web .bind .annotation .RestControllerAdvice ;
1615import org .springframework .web .servlet .NoHandlerFoundException ;
1716
18- import net .gpedro .integrations .slack .SlackApi ;
19-
2017import com .prgrms .mukvengers .global .common .dto .ErrorResponse ;
2118import com .prgrms .mukvengers .global .slack .annotation .SlackNotification ;
2219import com .prgrms .mukvengers .global .utils .MessageUtil ;
@@ -33,12 +30,6 @@ public class GlobalExceptionHandler {
3330 private static final String EXCEPTION_REQUEST_URI = "[EXCEPTION] REQUEST_URI -----> [{}]" ;
3431 private static final String EXCEPTION_HTTP_METHOD_TYPE = "[EXCEPTION] HTTP_METHOD_TYPE -----> [{}]" ;
3532
36- private final SlackApi slackApi ;
37-
38- public GlobalExceptionHandler (@ Value ("${spring.slack.webhook}" ) String webhook ) {
39- this .slackApi = new SlackApi (webhook );
40- }
41-
4233 @ ExceptionHandler (ServiceException .class ) // custom 에러
4334 public ResponseEntity <ErrorResponse > handleServiceException (HttpServletRequest request , ServiceException e ) {
4435 ErrorCode errorCode = e .getErrorCode ();
You can’t perform that action at this time.
0 commit comments