Class: Bumbleworks::ErrorHandler

Inherits:
Object
  • Object
show all
Includes:
WorkitemEntityStorage
Defined in:
lib/bumbleworks/error_handler.rb

Direct Known Subclasses

ErrorLogger

Defined Under Namespace

Classes: SubclassResponsibility

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#workitemObject

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_errorObject



11
12
13
# File 'lib/bumbleworks/error_handler.rb', line 11

def on_error
  raise SubclassResponsibility
end