Exception: AsyncTaskError
- Inherits:
-
Exception
- Object
- Exception
- AsyncTaskError
- Defined in:
- lib/bounded_async_task_runner.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(exception) ⇒ AsyncTaskError
constructor
A new instance of AsyncTaskError.
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
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
2 3 4 |
# File 'lib/bounded_async_task_runner.rb', line 2 def cause @cause end |