INNER CODE UNIT · Python
__init__
micronaut-projects/micronaut-core · context-python/src/main/resources/META-INF/GRAALPY-VFS/micronaut-application/src/micronaut_asyncio.py:135
def __init__(self, java_exception):
super().__init__(str(java_exception))
self.java_exception = java_exception
_AsyncioRuntime = java.type("io.micronaut.context.python.PythonAsyncioRuntime")
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."""