def __init__(self, filter_args, manager):
        """
        Parameters:

          filter_args (dict):
            Dictionary of filter arguments by which the resource was attempted
            to be found. Keys are the resource property names, values are
            the match values for that property.

          manager (:class:`~zhmcclient.BaseManager`):
            The manager of the resource, in whose scope the resource was
            attempted to be found.

            Must not be `None`.

        ``args[0]`` will be set to an exception message that is automatically
        constructed from the input parameters.
        """
        parent = manager.parent
        if parent:
            in_str = " in {} {!r}". \
                format(parent.__class__.__name__, parent.name)
        else:
            in_str = ""
        if filter_args and len(filter_args) == 1 and \
                manager._name_prop in filter_args:
            msg = "Could not find {} {!r}{}.". \
                format(manager.resource_class.__name__,
                       filter_args[manager._name_prop], in_str)
        else:
            msg = "Could not find {} using filter arguments {!r}{}.".\
                format(manager.resource_class.__name__, filter_args, in_str)
        super(NotFound, self).__init__(msg)
        self._filter_args = filter_args
        self._manager = manager
def __init__ ( self , filter_args , manager ) : parent = manager . parent if parent : in_str = " in {} {!r}" . format ( parent . __class__ . __name__ , parent . name ) else : in_str = "" if filter_args and len ( filter_args ) == 1 and manager . _name_prop in filter_args : msg = "Could not find {} {!r}{}." . format ( manager . resource_class . __name__ , filter_args [ manager . _name_prop ] , in_str ) else : msg = "Could not find {} using filter arguments {!r}{}." . format ( manager . resource_class . __name__ , filter_args , in_str ) super ( NotFound , self ) . __init__ ( msg ) self . _filter_args = filter_args self . _manager = manager
Parameters:

          filter_args (dict):
            Dictionary of filter arguments by which the resource was attempted
            to be found. Keys are the resource property names, values are
            the match values for that property.

          manager (:class:`~zhmcclient.BaseManager`):
            The manager of the resource, in whose scope the resource was
            attempted to be found.

            Must not be `None`.

        ``args[0]`` will be set to an exception message that is automatically
        constructed from the input parameters.