Class: Rubirai::RubiraiErrorEvent
- Defined in:
- lib/rubirai/events/rubirai_events.rb
Overview
Error events thrown when errors happened in event listeners
Instance Attribute Summary collapse
-
#err ⇒ Object
readonly
Returns the value of attribute err.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(err, bot = nil) ⇒ RubiraiErrorEvent
constructor
An error event just for internal use.
Methods inherited from Event
parse, #parse_val_from_key, set_event, type_to_klass, valid_type?
Constructor Details
#initialize(err, bot = nil) ⇒ RubiraiErrorEvent
An error event just for internal use
15 16 17 18 |
# File 'lib/rubirai/events/rubirai_events.rb', line 15 def initialize(err, bot = nil) super nil, bot @err = err end |
Instance Attribute Details
#err ⇒ Object (readonly)
Returns the value of attribute err.
10 11 12 |
# File 'lib/rubirai/events/rubirai_events.rb', line 10 def err @err end |