vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby.rb
#  Logs (error level) and raises an error.
Logs (error level) and raises an error.
Logs ( error level ) and raises an error .
def log_and_raise(object, error_class = RuntimeError)
    if object.is_a?(Exception)
      error = object
      Dnsruby.log.error(error.inspect)
      raise error
    else
      message = object.to_s
      Dnsruby.log.error(message)
      raise error_class.new(message)
    end
  end
def log_and_raise ( object , error_class = RuntimeError ) if object . is_a? ( Exception ) error = object Dnsruby . log . error ( error . inspect ) raise error else message = object . to_s Dnsruby . log . error ( message ) raise error_class . new ( message ) end end
Logs (error level) and raises an error.
Logs ( error level ) and raises an error .
object
<not_specific>
error_class
<not_specific>