diff --git a/src/com/base/CustomException.java b/src/com/base/CustomException.java index e59bb6bd..d9b8ab73 100644 --- a/src/com/base/CustomException.java +++ b/src/com/base/CustomException.java @@ -2,9 +2,13 @@ package com.base; +import java.beans.IntrospectionException; +import java.lang.reflect.InvocationTargetException; + import org.apache.log4j.Logger; import com.platform.controller.DataModelController; +import com.platform.utils.Bean2MapUtils; import com.platform.utils.Configs; /** @@ -83,9 +87,17 @@ public class CustomException extends Exception { for (int i = 0; i < forSize; i++) { sbuf.append(array[i]); sbuf.append("\r\n"); + try { + sbuf.append(Bean2MapUtils.convertBean(array[i])); + sbuf.append("\r\n"); + } catch (IllegalAccessException | InvocationTargetException + | IntrospectionException e1) { + } + } + if (forSize == Constant.CustomException_log_object_size) { + sbuf.append("......"); + sbuf.append("\r\n"); } - sbuf.append("......"); - sbuf.append("\r\n"); } else { sbuf.append("null");