Skip to content

Commit

Permalink
ClientAbortException 무시
Browse files Browse the repository at this point in the history
  • Loading branch information
Hank-Choi committed Feb 7, 2025
1 parent cedfe0c commit 380c032
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions api/src/main/kotlin/com/wafflestudio/snuttev/ErrorHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ import org.springframework.web.bind.MissingServletRequestParameterException
import org.springframework.web.bind.annotation.ExceptionHandler
import org.springframework.web.bind.annotation.RestControllerAdvice
import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException
import java.io.IOException



@RestControllerAdvice
class ErrorHandler {
Expand All @@ -42,7 +39,7 @@ class ErrorHandler {
}

@ExceptionHandler(ClientAbortException::class)
fun handleIOException(ex: IOException): ResponseEntity<Void> {
fun handleClientAbortException(ex: ClientAbortException): ResponseEntity<Void> {
return ResponseEntity.status(HttpStatus.NO_CONTENT).build()
}

Expand Down

0 comments on commit 380c032

Please sign in to comment.