Parent

Methods

Wait::BaseRaiser

Attributes

logger[RW]

Public Instance Methods

log(exception, raising) click to toggle source
# File lib/raisers/base.rb, line 12
def log(exception, raising)
  return if @logger.nil?

  @logger.debug("Raiser") { "#{"not " unless raising}raising: #{exception.class.name}" }
end
raise?(exception) click to toggle source

Returns true if an exception ought to be raised.

# File lib/raisers/base.rb, line 6
def raise?(exception)
  false.tap do |raising|
    log(exception, raising)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.