Class: Cql::QueryError
Overview
This error type represents errors sent by the server, the code
attribute
can be used to find the exact type, and cql
contains the request's CQL,
if any. message
contains the human readable error message sent by the
server.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#cql ⇒ Object
readonly
Returns the value of attribute cql.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(code, message, cql = nil, details = nil) ⇒ QueryError
constructor
A new instance of QueryError.
Constructor Details
#initialize(code, message, cql = nil, details = nil) ⇒ QueryError
Returns a new instance of QueryError.
11 12 13 14 15 16 |
# File 'lib/cql/client.rb', line 11 def initialize(code, , cql=nil, details=nil) super() @code = code @cql = cql @details = details end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/cql/client.rb', line 9 def code @code end |
#cql ⇒ Object (readonly)
Returns the value of attribute cql.
9 10 11 |
# File 'lib/cql/client.rb', line 9 def cql @cql end |
#details ⇒ Object (readonly)
Returns the value of attribute details.
9 10 11 |
# File 'lib/cql/client.rb', line 9 def details @details end |