Skip to content

Commit

Permalink
chore: request handler not found exception 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongho1209 committed Mar 23, 2024
1 parent 3dd9d77 commit 8173f79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.trip.safe.common.error

import com.trip.safe.common.error.exception.InternalServerErrorException
import com.trip.safe.common.error.response.BindErrorResponse
import com.trip.safe.common.error.response.ErrorResponse
import com.trip.safe.common.error.exception.InternalServerErrorException
import com.trip.safe.common.error.exception.RequestHandlerNotFoundException
import org.springframework.boot.autoconfigure.web.WebProperties
import org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler
import org.springframework.boot.web.reactive.error.ErrorAttributes
Expand All @@ -19,7 +18,6 @@ import org.springframework.web.reactive.function.server.RouterFunction
import org.springframework.web.reactive.function.server.RouterFunctions
import org.springframework.web.reactive.function.server.ServerRequest
import org.springframework.web.reactive.function.server.ServerResponse
import org.springframework.web.server.ResponseStatusException
import reactor.core.publisher.Mono

@Order(-2)
Expand Down Expand Up @@ -47,7 +45,6 @@ class GlobalErrorHandler(
when (val e = super.getError(request)) {
is BaseException -> e.toErrorResponse()
is WebExchangeBindException -> e.getBindErrorMessage()
is ResponseStatusException -> RequestHandlerNotFoundException(RequestHandlerNotFoundException.REQUEST_HANDLER_NOT_FOUND).toErrorResponse()
else -> {
e.printStackTrace()
InternalServerErrorException(InternalServerErrorException.UNEXPECTED_ERROR).toErrorResponse()
Expand Down

This file was deleted.

0 comments on commit 8173f79

Please sign in to comment.