Exception: AsyncTaskError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exception) ⇒ AsyncTaskError

Returns a new instance of AsyncTaskError.



4
5
6
7
# File 'lib/bounded_async_task_runner.rb', line 4

def initialize(exception)
  @cause = exception
  super("Worker error: #{cause.message} (#{cause.class.name})")
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



2
3
4
# File 'lib/bounded_async_task_runner.rb', line 2

def cause
  @cause
end