We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 563f222 commit 04a15fdCopy full SHA for 04a15fd
core/src/main/kotlin/common/exception/ProxyException.kt
@@ -1,8 +1,9 @@
1
package com.wafflestudio.snu4t.common.exception
2
3
+import com.fasterxml.jackson.databind.ObjectMapper
4
import org.springframework.http.HttpStatusCode
5
6
class ProxyException(
7
val statusCode: HttpStatusCode,
8
val errorBody: Map<String, Any?>,
-) : RuntimeException(errorBody.toString())
9
+) : RuntimeException(ObjectMapper().writeValueAsString(errorBody))
0 commit comments