Class: Bumbleworks::ErrorHandler
- Inherits:
-
Object
- Object
- Bumbleworks::ErrorHandler
- Includes:
- WorkitemEntityStorage
- Defined in:
- lib/bumbleworks/error_handler.rb
Direct Known Subclasses
Defined Under Namespace
Classes: SubclassResponsibility
Instance Attribute Summary collapse
-
#workitem ⇒ Object
Returns the value of attribute workitem.
Instance Method Summary collapse
-
#initialize(workitem) ⇒ ErrorHandler
constructor
A new instance of ErrorHandler.
- #on_error ⇒ Object
Methods included from WorkitemEntityStorage
#entity_storage_workitem, #wrapped_workitem
Constructor Details
#initialize(workitem) ⇒ ErrorHandler
Returns a new instance of ErrorHandler.
7 8 9 |
# File 'lib/bumbleworks/error_handler.rb', line 7 def initialize(workitem) @workitem = workitem end |
Instance Attribute Details
#workitem ⇒ Object
Returns the value of attribute workitem.
6 7 8 |
# File 'lib/bumbleworks/error_handler.rb', line 6 def workitem @workitem end |
Instance Method Details
#on_error ⇒ Object
11 12 13 |
# File 'lib/bumbleworks/error_handler.rb', line 11 def on_error raise SubclassResponsibility end |