Exception: Pipeline::RecoverableError
- Inherits:
-
StandardError
- Object
- StandardError
- Pipeline::RecoverableError
- Defined in:
- lib/pipeline/errors.rb
Overview
Exception to represent a recoverable error that can be raised by subclasses of Pipeline::Stage::Base that override the method run. Please refer to Pipeline::Base for more details about error handling.
Instance Method Summary collapse
-
#initialize(msg = nil, input_required = false) ⇒ RecoverableError
constructor
Instantiates a new instance of RecoverableError.
-
#input_required? ⇒ Boolean
Returns
trueif this error requires user action orfalseotherwise.
Constructor Details
#initialize(msg = nil, input_required = false) ⇒ RecoverableError
Instantiates a new instance of RecoverableError.
- msg
-
Is a description of the error message
- input_required
-
Is a boolean that determines if the error requires user action (
true, meaning it can not be automatically retried) or not (false, meaning it can be automatically retried). Default isfalse
30 31 32 33 |
# File 'lib/pipeline/errors.rb', line 30 def initialize(msg = nil, input_required = false) super(msg) @input_required = input_required end |
Instance Method Details
#input_required? ⇒ Boolean
Returns true if this error requires user action or false otherwise.
36 37 38 |
# File 'lib/pipeline/errors.rb', line 36 def input_required? @input_required end |