Exception: SmqlToAR::SubSMQLError

Inherits:
SMQLError
  • Object
show all
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

#data

Instance Method Summary collapse

Constructor Details

#initialize(query, model, exception) ⇒ SubSMQLError

Returns a new instance of SubSMQLError.



33
34
35
36
37
38
# File 'lib/smql_to_ar.rb', line 33

def initialize query, model, exception
	ex = {:class => exception.class, :message => exception.message}
	ex[:data] = exception.data  if exception.respond_to? :data
	super :query => query, :model => model.to_s, :exception => ex
	set_backtrace exception.backtrace
end