diff --git a/src/main/kotlin/com/vacgom/backend/global/exception/ApiExceptionHandlingFilter.kt b/src/main/kotlin/com/vacgom/backend/global/exception/ApiExceptionHandlingFilter.kt index e078468..37cb8e1 100644 --- a/src/main/kotlin/com/vacgom/backend/global/exception/ApiExceptionHandlingFilter.kt +++ b/src/main/kotlin/com/vacgom/backend/global/exception/ApiExceptionHandlingFilter.kt @@ -39,7 +39,7 @@ class ApiExceptionHandlingFilter( response.contentType = MediaType.APPLICATION_JSON_VALUE response.status = HttpStatus.UNAUTHORIZED.value() om.writeValue(response.outputStream, ErrorResponse(exception.errorCode)) - } catch (ex: IOException) { - throw RuntimeException(ex) + } catch (exception: IOException) { + throw RuntimeException(exception) } }