Exception: Cola::RetryError
Instance Attribute Summary collapse
-
#envelope ⇒ Object
readonly
Returns the value of attribute envelope.
-
#inner_exception ⇒ Object
readonly
Returns the value of attribute inner_exception.
Instance Method Summary collapse
-
#initialize(envelope, inner_exception) ⇒ RetryError
constructor
A new instance of RetryError.
- #to_s ⇒ Object
Constructor Details
#initialize(envelope, inner_exception) ⇒ RetryError
Returns a new instance of RetryError.
10 11 12 13 14 |
# File 'lib/cola/errors.rb', line 10 def initialize(envelope, inner_exception) @envelope = envelope @inner_exception = inner_exception super() end |
Instance Attribute Details
#envelope ⇒ Object (readonly)
Returns the value of attribute envelope.
7 8 9 |
# File 'lib/cola/errors.rb', line 7 def envelope @envelope end |
#inner_exception ⇒ Object (readonly)
Returns the value of attribute inner_exception.
8 9 10 |
# File 'lib/cola/errors.rb', line 8 def inner_exception @inner_exception end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/cola/errors.rb', line 16 def to_s "Retried #{@envelope.retries} times. Last known error was #{@envelope.last_reason}. UUID #{@envelope.uuid}" end |