Contents
- Usage page
-
API docs index
-
Cassandra module
- AddressResolution module
- Auth module
- Compression module
- Error module
-
Errors module
- ExecutionError module
- HostError module
- ValidationError module
-
AlreadyExistsError class
- AuthenticationError class
- ClientError class
- ConfigurationError class
- DecodingError class
- EncodingError class
- InternalError class
- InvalidError class
- IOError class
- IsBootstrappingError class
- NoHostsAvailable class
- OverloadedError class
- ProtocolError class
- ReadTimeoutError class
- ServerError class
- SyntaxError class
- TimeoutError class
- TruncateError class
- UnauthorizedError class
- UnavailableError class
- UnpreparedError class
- WriteTimeoutError class
- Execution module
- LoadBalancing module
- Reconnection module
- Retry module
- Statement module
- Statements module
- Cluster class
- Column class
- Future class
- Host class
- Keyspace class
- Listener class
- Result class
- Session class
- Table class
- TimeUuid class
- Uuid class
-
Cassandra module
Raised when the query attempted to create a keyspace or a table that was already existing.
- Examples:
-
- Creating a table twice
session.execute("USE my_keyspace") session.execute("CREATE TABLE users (user_id INT PRIMARY KEY)") begin session.execute("CREATE TABLE users (user_id INT PRIMARY KEY)") rescue Cassandra::Errors::AlreadyExistsError => e p ['already exists', e.keyspace, e.table] end
- See Also: