Just use a single exception class for invalid queries
CQLValue class to convert ruby objects to CQL query values