Skip to content

Commit 8ab1948

Browse files
committed
AbortedException 무시
1 parent 0b58d1f commit 8ab1948

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api/src/main/kotlin/filter/ErrorWebFilter.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import org.springframework.web.server.ServerWebExchange
1414
import org.springframework.web.server.WebFilter
1515
import org.springframework.web.server.WebFilterChain
1616
import reactor.core.publisher.Mono
17+
import reactor.netty.channel.AbortedException
1718

1819
@Component
1920
class ErrorWebFilter(
@@ -45,6 +46,10 @@ class ErrorWebFilter(
4546
Snu4tException(errorMessage = throwable.body.title ?: ErrorType.DEFAULT_ERROR.errorMessage),
4647
)
4748
}
49+
is AbortedException -> {
50+
httpStatusCode = HttpStatus.GATEWAY_TIMEOUT
51+
errorBody = makeErrorBody(Snu4tException())
52+
}
4853
else -> {
4954
log.error(throwable.message, throwable)
5055
httpStatusCode = HttpStatus.INTERNAL_SERVER_ERROR

0 commit comments

Comments
 (0)