#NEWLINE# @ _check_resource ( strict = False ) #NEWLINE# def _get( self , resource_type , value = None , path_args = None , args = None ) : #NEWLINE# #INDENT# 'Get a resource\n\n        :param resource_type: The type of resource to get.\n        :type resource_type: :class:`~openstack.resource.Resource`\n        :param value: The value to get. Can be either the ID of a\n                      resource or a :class:`~openstack.resource.Resource`\n                      subclass.\n        :param path_args: A dict containing arguments for forming the request\n                          URL, if needed.\n        :param args: A optional dict containing arguments that will be\n            translated into query strings when forming the request URL.\n\n        :returns: The result of the ``get``\n        :rtype: :class:`~openstack.resource.Resource`\n        ' #NEWLINE# res = self . _get_resource ( resource_type , value , path_args ) #NEWLINE# try : #NEWLINE# #INDENT# return res . get ( self . session , args = args ) #NEWLINE# #UNINDENT# except exceptions . NotFoundException as e : #NEWLINE# #INDENT# raise exceptions . ResourceNotFound ( message = ( 'No %s found for %s' % ( resource_type . __name__ , value ) ) , details = e . details , response = e . response , request_id = e . request_id , url = e . url , method = e . method , http_status = e . http_status , cause = e . cause )