def universal_exception(coro):
@functools.wraps(coro)<EOL>async def wrapper(*args, **kwargs):<EOL><INDENT>try:<EOL><INDENT>return await coro(*args, **kwargs)<EOL><DEDENT>except (asyncio.CancelledError, NotImplementedError,<EOL>StopAsyncIteration):<EOL><INDENT>raise<EOL><DEDENT>except Exception:<EOL><INDENT>raise errors.PathIOError(reason=sys.exc_info())<EOL><DEDENT><DEDENT>return wrapper<EOL>
Decorator. Reraising any exception (except `CancelledError` and
`NotImplementedError`) with universal exception
:py:class:`aioftp.PathIOError`