'Query building error for type cast operations.
Args:
operator: the failed cast operation
values: value list passed to the cast operator
error_message: string to emit as part of the \'Cast Error\' string.
Raises:
BadQueryError and passes on an error message from the caller. Will raise
BadQueryError on all calls.'

def __CastError(self, operator, values, error_message):

    raise datastore_errors.BadQueryError(('Type    Cast    Error:    unable    to    cast    %r    with    operation    %s    (%s)' % (values, operator.upper(), error_message)))
