class DeferrableGratification::GuardFailed

Exception passed to errbacks by {Combinators#guard} if the arguments to +Deferrable#succeed+ fail the supplied predicate.

Attributes

args[R]
reason[R]

Public Class Methods

new(reason, args) click to toggle source
Calls superclass method
# File lib/deferrable_gratification.rb, line 28
def initialize(reason, args)
  @reason = reason || 'guard failed'
  @args = args
  super("#{@args.inspect}: #{@reason}")
end