Exception: Sq::Dbsync::Pipeline::Failure
- Inherits:
-
StandardError
- Object
- StandardError
- Sq::Dbsync::Pipeline::Failure
- Defined in:
- lib/sq/dbsync/pipeline.rb
Overview
Used to signal failed operations in a pipeline.
Instance Attribute Summary collapse
-
#task ⇒ Object
readonly
The task that was being processed when this failure occurred.
-
#wrapped_exception ⇒ Object
readonly
The original exception that caused this failure.
Instance Method Summary collapse
-
#initialize(wrapped, task) ⇒ Failure
constructor
A new instance of Failure.
Constructor Details
#initialize(wrapped, task) ⇒ Failure
Returns a new instance of Failure.
59 60 61 62 |
# File 'lib/sq/dbsync/pipeline.rb', line 59 def initialize(wrapped, task) @wrapped_exception = wrapped @task = task end |
Instance Attribute Details
#task ⇒ Object (readonly)
The task that was being processed when this failure occurred.
57 58 59 |
# File 'lib/sq/dbsync/pipeline.rb', line 57 def task @task end |
#wrapped_exception ⇒ Object (readonly)
The original exception that caused this failure.
54 55 56 |
# File 'lib/sq/dbsync/pipeline.rb', line 54 def wrapped_exception @wrapped_exception end |