Class: RubyApp::Element::ExceptionEvent

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

Instance Attribute Summary

Attributes inherited from Event

#source

Instance Method Summary collapse

Methods inherited from Event

#alert, #execute, from_hash, #go, #hide, #process!, #refresh, #show, #to_hash, #update_element, #update_text, #update_value

Constructor Details

#initialize(data, exception) ⇒ ExceptionEvent

Returns a new instance of ExceptionEvent.



90
91
92
93
# File 'lib/ruby_app/element.rb', line 90

def initialize(data, exception)
  super(data)
  self.alert(exception.message)
end