Skip to content

Commit

Permalink
refactor: IllegalArgumentException 발생시 400 예외를 던진다
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed May 17, 2024
1 parent 790b3a1 commit 3c49ed1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class PersonaController(
}

@ExceptionHandler(IllegalArgumentException::class)
@ResponseStatus(HttpStatus.BAD_REQUEST)
fun handleIllegalArgumentException(exception: IllegalArgumentException): ErrorResponse =
ErrorResponse.from(exception)
}

0 comments on commit 3c49ed1

Please sign in to comment.