Class: Celluloid::ErrorResponse

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

Overview

Call was aborted due to caller error

Instance Attribute Summary

Attributes inherited from Response

#call_id

Instance Method Summary collapse

Methods inherited from Response

#initialize

Constructor Details

This class inherits a constructor from Celluloid::Response

Instance Method Details

#valueObject



16
17
18
19
20
21
22
23
24
# File 'lib/vendor/celluloid/lib/celluloid/responses.rb', line 16

def value
  if super.is_a? AbortError
    # Aborts are caused by caller error, so ensure they capture the
    # caller's backtrace instead of the receiver's
    raise super.cause.class.new(super.cause.message)
  else
    raise super
  end
end