Exception: Cola::RetryError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#envelopeObject (readonly)

Returns the value of attribute envelope.



7
8
9
# File 'lib/cola/errors.rb', line 7

def envelope
  @envelope
end

#inner_exceptionObject (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_sObject



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