X-Git-Url: http://jaekl.net/gitweb/?p=cfb.git;a=blobdiff_plain;f=prod%2Fnet%2Fjaekl%2Fcfb%2Fstore%2FDbStore.java;fp=prod%2Fnet%2Fjaekl%2Fcfb%2Fstore%2FDbStore.java;h=917dc48d55e41857fd2096620b7ddacf5b9f3bcd;hp=b17a419626a69e4afbb692aaf01157df9fe3c3da;hb=7ac6be132ecd6872971a1de56f033b4434d3173a;hpb=4624f0fed5347f4f5fd62a2225c789d0f9ea6b6f diff --git a/prod/net/jaekl/cfb/store/DbStore.java b/prod/net/jaekl/cfb/store/DbStore.java index b17a419..917dc48 100644 --- a/prod/net/jaekl/cfb/store/DbStore.java +++ b/prod/net/jaekl/cfb/store/DbStore.java @@ -223,7 +223,7 @@ public class DbStore { return getVarId(vars.get(0)); } - LocalVariable getVar(Long varId) throws SQLException, TypeMismatchException + LocalVariable getVar(Long varId) throws SQLException, TypeMismatchException, StoreException { if (null == varId) { return null; @@ -235,7 +235,7 @@ public class DbStore { List result = m_driver.select(m_con, columns, tables, conditions); if (result.size() < 1) { - throw new SQLException("No variable found for ID " + varId); + throw new StoreException(StoreException.Type.INVALID_VAR_ID, ""+varId); } if (result.size() > 1) { throw new SQLException("Too many matches (" + result.size() + ") found for variable ID " + varId);