# File lib/chef_zero/rest_base.rb, line 71 def get_data(request, rest_path=nil, *options) rest_path ||= request.rest_path begin data_store.get(rest_path, request) rescue DataStore::DataNotFoundError if options.include?(:nil) nil elsif options.include?(:data_store_exceptions) raise else raise RestErrorResponse.new(404, "Object not found: #{build_uri(request.base_uri, rest_path)}") end end end