INNER CODE UNIT · Python
_report_loop_error
micronaut-projects/micronaut-core · context-python/src/main/resources/META-INF/GRAALPY-VFS/micronaut-application/src/micronaut_asyncio.py:142
def _report_loop_error(text):
"""Log an event-loop error through Micronaut's logger, falling back to stderr."""
try:
_AsyncioRuntime.reportLoopError(text)
except BaseException:
import sys
print(text, file=sys.stderr)
class MicronautJavaOSError(OSError):
"""A Java I/O failure as the ``OSError`` asyncio code handles; ``java_exception`` is the Java throwable."""
def __init__(self, java_exception):
super().__init__(str(java_exception))
self.java_exception = java_exception
class MicronautJavaConnectionRefused(ConnectionRefusedError):