- Row row = m_driver.selectExactlyOne(m_con, columns, tables, conditions);
-
- String className = row.getString(0);
- String methodName = row.getString(1);
- String methodRole = row.getString(2);
- long startLine = row.getLong(3);
- long endLine = row.getLong(4);
-
- Location loc = new Location(locId, className, methodName, methodRole, startLine, endLine);
- return loc;
+ try {
+ Row row = m_driver.selectExactlyOne(m_con, columns, tables, conditions);
+
+ String className = row.getString(0);
+ String methodName = row.getString(1);
+ String methodRole = row.getString(2);
+ Integer startLine = row.getInt(3);
+ Integer endLine = row.getInt(4);
+
+ Location loc = new Location(locId, className, methodName, methodRole, startLine, endLine);
+ return loc;
+ }
+ catch (SQLException exc) {
+ throw new StoreException(exc, StoreException.Type.INVALID_LOC_ID, ""+locId);
+ }