class Cassandra::Errors::AuthenticationError

Raised when cannot authenticate to Cassandra

@see github.com/apache/cassandra/blob/cassandra-2.0.16/doc/native_protocol_v1.spec#L659-L660 Description

of Bad Credentials Error in Apache Cassandra native protocol spec v1

Public Class Methods

new(message, payload, warnings, keyspace, statement, options, hosts, consistency, retries) click to toggle source

@private

Calls superclass method
    # File lib/cassandra/errors.rb
545 def initialize(message,
546                payload,
547                warnings,
548                keyspace,
549                statement,
550                options,
551                hosts,
552                consistency,
553                retries)
554   super(message)
555   @payload     = payload
556   @warnings    = warnings
557   @keyspace    = keyspace
558   @statement   = statement
559   @options     = options
560   @hosts       = hosts
561   @consistency = consistency
562   @retries     = retries
563 end

Public Instance Methods

execution_info() click to toggle source

Query execution information, such as number of retries and all tried hosts, etc. @return [Cassandra::Execution::Info]

    # File lib/cassandra/errors.rb
567 def execution_info
568   @info ||= Execution::Info.new(@payload,
569                                 @warnings,
570                                 @keyspace,
571                                 @statement,
572                                 @options,
573                                 @hosts,
574                                 @consistency,
575                                 @retries,
576                                 nil)
577 end