Class: Db2Query::Logger::StatementInvalid
- Inherits:
-
ActiveRecord::ActiveRecordError
- Object
- ActiveRecord::ActiveRecordError
- Db2Query::Logger::StatementInvalid
- Defined in:
- lib/db2_query/logger.rb
Instance Attribute Summary collapse
-
#binds ⇒ Object
readonly
Returns the value of attribute binds.
-
#sql ⇒ Object
readonly
Returns the value of attribute sql.
Instance Method Summary collapse
-
#initialize(message = nil, sql: nil, binds: nil) ⇒ StatementInvalid
constructor
A new instance of StatementInvalid.
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( = nil, sql: nil, binds: nil) super( || $!.try(:message)) @sql = sql @binds = binds end |
Instance Attribute Details
#binds ⇒ Object (readonly)
Returns the value of attribute binds.
49 50 51 |
# File 'lib/db2_query/logger.rb', line 49 def binds @binds end |
#sql ⇒ Object (readonly)
Returns the value of attribute sql.
49 50 51 |
# File 'lib/db2_query/logger.rb', line 49 def sql @sql end |