diff --git a/src/main/kotlin/team/sfe/server/global/error/CustomException.kt b/src/main/kotlin/team/sfe/server/global/error/CustomException.kt index bb2eb85..56590de 100644 --- a/src/main/kotlin/team/sfe/server/global/error/CustomException.kt +++ b/src/main/kotlin/team/sfe/server/global/error/CustomException.kt @@ -2,5 +2,5 @@ package team.sfe.server.global.error abstract class CustomException( val status: Int, - override val message: String + override val message: String, ) : RuntimeException() diff --git a/src/main/kotlin/team/sfe/server/global/error/ErrorResponse.kt b/src/main/kotlin/team/sfe/server/global/error/ErrorResponse.kt index d7b76e6..7cf1090 100644 --- a/src/main/kotlin/team/sfe/server/global/error/ErrorResponse.kt +++ b/src/main/kotlin/team/sfe/server/global/error/ErrorResponse.kt @@ -10,7 +10,7 @@ import team.sfe.server.global.exception.MethodNotAllowedException data class ErrorResponse( val status: Int, val message: String, - val fieldErrors: List + val fieldErrors: List, ) { companion object { @@ -82,7 +82,7 @@ data class ErrorResponse( data class FieldError( val field: String, val value: String, - val reason: String + val reason: String, ) { companion object { diff --git a/src/main/kotlin/team/sfe/server/global/filter/FilterConfig.kt b/src/main/kotlin/team/sfe/server/global/filter/FilterConfig.kt index 2808428..bea94da 100644 --- a/src/main/kotlin/team/sfe/server/global/filter/FilterConfig.kt +++ b/src/main/kotlin/team/sfe/server/global/filter/FilterConfig.kt @@ -6,7 +6,7 @@ import org.springframework.security.config.annotation.web.builders.HttpSecurity import org.springframework.security.web.DefaultSecurityFilterChain class FilterConfig( - private val objectMapper: ObjectMapper + private val objectMapper: ObjectMapper, ) : SecurityConfigurerAdapter() { override fun configure(builder: HttpSecurity?) { diff --git a/src/main/kotlin/team/sfe/server/global/filter/GlobalExceptionFilter.kt b/src/main/kotlin/team/sfe/server/global/filter/GlobalExceptionFilter.kt index bd47702..a1e1256 100644 --- a/src/main/kotlin/team/sfe/server/global/filter/GlobalExceptionFilter.kt +++ b/src/main/kotlin/team/sfe/server/global/filter/GlobalExceptionFilter.kt @@ -11,7 +11,7 @@ import team.sfe.server.global.error.ErrorResponse import java.nio.charset.StandardCharsets class GlobalExceptionFilter( - private val objectMapper: ObjectMapper + private val objectMapper: ObjectMapper, ) : OncePerRequestFilter() { override fun doFilterInternal(