Skip to content

Commit 04a15fd

Browse files
committed
serialize error body
1 parent 563f222 commit 04a15fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package com.wafflestudio.snu4t.common.exception
22

3+
import com.fasterxml.jackson.databind.ObjectMapper
34
import org.springframework.http.HttpStatusCode
45

56
class ProxyException(
67
val statusCode: HttpStatusCode,
78
val errorBody: Map<String, Any?>,
8-
) : RuntimeException(errorBody.toString())
9+
) : RuntimeException(ObjectMapper().writeValueAsString(errorBody))

0 commit comments

Comments
 (0)