change Error to IllegalArgumentException in AlterTableCqlGenerator

This commit is contained in:
Alex Shvid
2013-11-26 13:34:28 -08:00
parent 1d01ac995a
commit 88730e73a3

View File

@@ -64,7 +64,7 @@ public class AlterTableCqlGenerator extends TableOptionsCqlGenerator<AlterTableS
if (change instanceof AlterColumnSpecification) {
return new AlterColumnCqlGenerator((AlterColumnSpecification) change);
}
throw new Error("unknown ColumnChangeSpecification type: " + change.getClass().getName());
throw new IllegalArgumentException("unknown ColumnChangeSpecification type: " + change.getClass().getName());
}
@SuppressWarnings("unchecked")