Exception: SmqlToAR::SubSMQLError
- Defined in:
- lib/smql_to_ar.rb
Overview
Ein Fehler ist in einem Subquery aufgetreten. Die eigentliche Exception wird in @data hinterlegt.
Instance Attribute Summary
Attributes inherited from SMQLError
Instance Method Summary collapse
-
#initialize(query, model, exception) ⇒ SubSMQLError
constructor
A new instance of SubSMQLError.
Constructor Details
#initialize(query, model, exception) ⇒ SubSMQLError
Returns a new instance of SubSMQLError.
45 46 47 48 49 50 |
# File 'lib/smql_to_ar.rb', line 45 def initialize query, model, exception ex = {class: exception.class, message: exception.} ex[:data] = exception.data if exception.respond_to? :data super query: query, model: model.to_s, exception: ex set_backtrace exception.backtrace end |