Class: Celluloid::ErrorResponse

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

Overview

Call was aborted due to caller error

Instance Attribute Summary

Attributes inherited from Response

#call

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/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.exception
  else
    raise super
  end
end