# File lib/puppet/network/format_handler.rb, line 11 11: def protect(method, args) 12: Puppet::Network::FormatHandler.format(format).send(method, *args) 13: rescue => details 14: direction = method.to_s.include?("intern") ? "from" : "to" 15: error = FormatError.new("Could not #{method} #{direction} #{format}: #{details}") 16: error.set_backtrace(details.backtrace) 17: raise error 18: end