def pathresource(self, rscpath=None, logger=None):
result = None<EOL>try:<EOL><INDENT>result = self._pathresource(rscpath=rscpath)<EOL><DEDENT>except Exception as ex:<EOL><INDENT>if logger is not None:<EOL><INDENT>msg = '<STR_LIT>'.format(rscpath)<EOL>full_msg = '<STR_LIT>'.format(msg, ex, format_exc())<EOL>logger.error(full_msg)<EOL><DEDENT><DEDENT>return result<EOL>
Returns specific resource.

        :param str rscpath: resource path.
        :param Logger logger: logger to use.
        :param bool error: raise internal error if True (False by default).
        :param bool force: create the resource even if rscpath does not exist.
        :return: specific configuration resource.