fo bo 머지작업 - 오류수정
This commit is contained in:
@@ -27,14 +27,16 @@ public class WnbtResponseBody {
|
||||
.setSerializationInclusion(JsonInclude.Include.NON_NULL); // null 값 제외
|
||||
|
||||
public WnbtResponseBody(Object result) {
|
||||
|
||||
try{
|
||||
this.result = OBJECT_MAPPER.writeValueAsString(result);
|
||||
} catch (JsonProcessingException e) {
|
||||
log.error(e.getMessage());
|
||||
throw new WnbtRestException(ErrorCode.INTERNAL_SERVER_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
public WnbtResponseBody(WnbtRestException ex, Object result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user