class Roby::Promise::Failure

@api private

Encapsulation of an exception raised by a callback

For whatever reason, the concurrent-ruby developers decided that a non-RuntimeError would be fatal to the promise (not be handled “normally”).

Roby never had such a constraint, so that's dangerous here. Encapsulate an exception in Failure to pass it out of the concurrent-ruby promise.

Attributes

actual_exception[R]

Public Class Methods

new(error) click to toggle source
# File lib/roby/promise.rb, line 121
def initialize(error)
    @actual_exception = error
end