def self.included(mod)
mod.class_eval "class NotFound < Fog::Service::NotFound\nattr_reader :region, :status_code, :transaction_id\n\ndef to_s\nstatus = status_code ? \"HTTP \#{status_code}\" : \"HTTP <Unknown>\"\nmessage = region ? \"resource not found in \#{region} region\" : super\n\"[\#{status} | \#{transaction_id}] \#{message}\"\nend\n\ndef self.slurp(error, service=nil)\nexception = NotFound.new\nexception.instance_variable_set(:@region, service.region) if service && service.respond_to?(:region)\nexception.instance_variable_set(:@status_code, error.response.status) rescue nil\nexception.set_transaction_id(error, service)\nexception\nend\n\ndef set_transaction_id(error, service)\nreturn unless service && service.respond_to?(:request_id_header) && error.response\n@transaction_id = error.response.headers[service.request_id_header]\nend\n\nend\n", __FILE__, __LINE__
end