Class: Db2Query::Logger::StatementInvalid

Inherits:
ActiveRecord::ActiveRecordError
  • Object
show all
Defined in:
lib/db2_query/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, sql: nil, binds: nil) ⇒ StatementInvalid

Returns a new instance of StatementInvalid.



43
44
45
46
47
# File 'lib/db2_query/logger.rb', line 43

def initialize(message = nil, sql: nil, binds: nil)
  super(message || $!.try(:message))
  @sql = sql
  @binds = binds
end

Instance Attribute Details

#bindsObject (readonly)

Returns the value of attribute binds.



49
50
51
# File 'lib/db2_query/logger.rb', line 49

def binds
  @binds
end

#sqlObject (readonly)

Returns the value of attribute sql.



49
50
51
# File 'lib/db2_query/logger.rb', line 49

def sql
  @sql
end