Exception: Nvoi::Errors::DeploymentError

Inherits:
Error
  • Object
show all
Defined in:
lib/nvoi/errors.rb

Overview

Deployment errors

Instance Attribute Summary collapse

Attributes inherited from Error

#details

Instance Method Summary collapse

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, message, retryable: false, details: nil)
  @step = step
  @retryable = retryable
  super("#{step}: #{message}", details:)
end

Instance Attribute Details

#retryableObject (readonly)

Returns the value of attribute retryable.



55
56
57
# File 'lib/nvoi/errors.rb', line 55

def retryable
  @retryable
end

#stepObject (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

Returns:

  • (Boolean)


63
64
65
# File 'lib/nvoi/errors.rb', line 63

def retryable?
  @retryable
end