Class: RubyApp::Element::ExceptionEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/ruby_app/element.rb

Instance Attribute Summary

Attributes inherited from Event

#now, #source

Instance Method Summary collapse

Methods inherited from Event

#add_class, #alert, #confirm_refresh, #execute, from_hash, #go, #hide, #process!, #refresh, #remove_class, #set_cookie, #show, #to_hash, #today, #update_element, #update_text, #update_value

Methods included from Mixins::TranslateMixin

#localize, #translate

Constructor Details

#initialize(exception) ⇒ ExceptionEvent

Returns a new instance of ExceptionEvent.



118
119
120
121
# File 'lib/ruby_app/element.rb', line 118

def initialize(exception)
  super()
  self.confirm_refresh(RubyApp::Element::ExceptionEvent.translate.message(exception.message))
end