Exception: DataMapper::Adapters::Sql::Commands::LoadCommand::ConditionsError
- Inherits:
-
StandardError
- Object
- StandardError
- DataMapper::Adapters::Sql::Commands::LoadCommand::ConditionsError
- Defined in:
- lib/data_mapper/adapters/sql/commands/load_command.rb
Instance Attribute Summary collapse
-
#inner_error ⇒ Object
readonly
Returns the value of attribute inner_error.
Instance Method Summary collapse
- #backtrace ⇒ Object
-
#initialize(clause, value, inner_error) ⇒ ConditionsError
constructor
A new instance of ConditionsError.
- #message ⇒ Object
Constructor Details
#initialize(clause, value, inner_error) ⇒ ConditionsError
Returns a new instance of ConditionsError.
107 108 109 |
# File 'lib/data_mapper/adapters/sql/commands/load_command.rb', line 107 def initialize(clause, value, inner_error) @clause, @value, @inner_error = clause, value, inner_error end |
Instance Attribute Details
#inner_error ⇒ Object (readonly)
Returns the value of attribute inner_error.
105 106 107 |
# File 'lib/data_mapper/adapters/sql/commands/load_command.rb', line 105 def inner_error @inner_error end |
Instance Method Details
#backtrace ⇒ Object
115 116 117 |
# File 'lib/data_mapper/adapters/sql/commands/load_command.rb', line 115 def backtrace @inner_error.backtrace end |
#message ⇒ Object
111 112 113 |
# File 'lib/data_mapper/adapters/sql/commands/load_command.rb', line 111 def "Conditions (:clause => #{@clause.inspect}, :value => #{@value.inspect}) failed: #{@inner_error}" end |