Skip to content

Commit

Permalink
fix: globalExceptionHandler에 restAdviceController 함수 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
dtd1614 committed May 16, 2024
1 parent 7128bbf commit 80c0a4d
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,4 @@ public String notFoundException(NotFoundException e) {
log.error("notFoundException", e);
return "redirect:/notfound";
}


@ExceptionHandler(MethodArgumentNotValidException.class)
protected BaseResponse methodArgumentNotValidException(MethodArgumentNotValidException e){
log.error("invalidInputException", e);
return new BaseResponse(
false,
FailureInfo.INVALID_INPUT.getCode(),
e.getFieldError().getDefaultMessage()
);
}
}

0 comments on commit 80c0a4d

Please sign in to comment.