Mercurial > hg > Database > Christie
changeset 147:3ce77273d76b
update datagear add exception
author | akahori |
---|---|
date | Tue, 08 Jan 2019 11:43:13 +0900 |
parents | 0ef25958ac04 |
children | 301c1633745e |
files | src/main/java/christie/datagear/dg/DataGear.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/christie/datagear/dg/DataGear.java Mon Jan 07 16:02:26 2019 +0900 +++ b/src/main/java/christie/datagear/dg/DataGear.java Tue Jan 08 11:43:13 2019 +0900 @@ -45,6 +45,9 @@ } } + // ごめん. いい例外処理見つけられなかった. + throw new ClassCastException("datagear cannot set class from " + dataClazz.getName() + " to " + clazz.getName()); + } public void setClazz(Class clazz){