Class: Celluloid::ErrorResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/celluloid/responses.rb

Overview

Call was aborted due to sender error

Instance Attribute Summary

Attributes inherited from Response

#call

Instance Method Summary collapse

Methods inherited from Response

#dispatch, #initialize

Constructor Details

This class inherits a constructor from Celluloid::Response

Instance Method Details

#valueObject


20
21
22
23
24
25
26
27
28
29
30
# File 'lib/celluloid/responses.rb', line 20

def value
  ex = super
  ex = ex.cause if ex.is_a? AbortError

  if ex.backtrace
    ex.backtrace << "(celluloid):0:in `remote procedure call'"
    ex.backtrace.concat(caller)
  end

  raise ex
end