import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
-import java.util.Locale;
-import net.jaekl.cfb.CfbBundle;
import net.jaekl.cfb.analyze.Analysis;
import net.jaekl.cfb.db.CfbSchema;
import net.jaekl.cfb.db.Column;
}
public boolean put(Analysis analysis) throws SQLException, TypeMismatchException, StoreException {
- CfbBundle bundle = CfbBundle.getInst(Locale.getDefault());
-
if (null == analysis) {
return false;
}
Location thirdLoc = (locs.size() > 2) ? locs.get(2) : null;
if (BugPattern.UNKNOWN.getId() == bugId) {
- throw new StoreException(bundle.get(CfbBundle.BUG_TYPE_UNKNOWN, ""+bug.getType()));
+ throw new StoreException(StoreException.Type.UNKNOWN_PATTERN, ""+bug.getType());
}
if (BugCategory.UNKNOWN.getId() == categoryId) {
- throw new StoreException(bundle.get(CfbBundle.BUG_CATEGORY_UNKNOWN, ""+bug.getCategory()));
+ throw new StoreException(StoreException.Type.UNKNOWN_CATEGORY, ""+bug.getCategory());
}
values[row][0] = foundId;