Exception: Nvoi::Errors::DeploymentError
- Defined in:
- lib/nvoi/errors.rb
Overview
Deployment errors
Instance Attribute Summary collapse
-
#retryable ⇒ Object
readonly
Returns the value of attribute retryable.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(step, message, retryable: false, details: nil) ⇒ DeploymentError
constructor
A new instance of DeploymentError.
- #retryable? ⇒ Boolean
Constructor Details
#initialize(step, message, retryable: false, details: nil) ⇒ DeploymentError
Returns a new instance of DeploymentError.
57 58 59 60 61 |
# File 'lib/nvoi/errors.rb', line 57 def initialize(step, , retryable: false, details: nil) @step = step @retryable = retryable super("#{step}: #{message}", details:) end |
Instance Attribute Details
#retryable ⇒ Object (readonly)
Returns the value of attribute retryable.
55 56 57 |
# File 'lib/nvoi/errors.rb', line 55 def retryable @retryable end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
55 56 57 |
# File 'lib/nvoi/errors.rb', line 55 def step @step end |
Instance Method Details
#retryable? ⇒ Boolean
63 64 65 |
# File 'lib/nvoi/errors.rb', line 63 def retryable? @retryable end |