Exception: ScbiMapreduce::WorkerError

Inherits:
Exception
  • Object
show all
Defined in:
lib/scbi_mapreduce/error_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, original_exception, worker_id, object) ⇒ WorkerError

Returns a new instance of WorkerError.



7
8
9
10
11
12
# File 'lib/scbi_mapreduce/error_handler.rb', line 7

def initialize(message, original_exception, worker_id, object)
  @message = message
  @worker_id = worker_id
  @original_exception = original_exception
  @object = object
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



5
6
7
# File 'lib/scbi_mapreduce/error_handler.rb', line 5

def object
  @object
end

#original_exceptionObject (readonly)

Returns the value of attribute original_exception.



5
6
7
# File 'lib/scbi_mapreduce/error_handler.rb', line 5

def original_exception
  @original_exception
end

#worker_idObject (readonly)

Returns the value of attribute worker_id.



5
6
7
# File 'lib/scbi_mapreduce/error_handler.rb', line 5

def worker_id
  @worker_id
end