Let's use StringUtil.shortClassName() which handles null and also snips off the
package, since that's generally TMI anyway. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6173 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -529,7 +529,7 @@ public class DObject
|
|||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
String errmsg = "changeAttribute() failure [name=" + name + ", value=" + value +
|
String errmsg = "changeAttribute() failure [name=" + name + ", value=" + value +
|
||||||
", vclass=" + value.getClass().getName() + "].";
|
", vclass=" + StringUtil.shortClassName(value) + "].";
|
||||||
throw new ObjectAccessException(errmsg, e);
|
throw new ObjectAccessException(errmsg, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -547,7 +547,7 @@ public class DObject
|
|||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
String errmsg = "setAttribute() failure [name=" + name + ", value=" + value +
|
String errmsg = "setAttribute() failure [name=" + name + ", value=" + value +
|
||||||
(value == null ? "" : ", vclass=" + value.getClass().getName()) + "].";
|
", vclass=" + StringUtil.shortClassName(value) + "].";
|
||||||
throw new ObjectAccessException(errmsg, e);
|
throw new ObjectAccessException(errmsg, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user