libretro.error

Exception types raised by libretro.py’s drivers and core wrapper.

Exceptions

CallbackException

Wraps an exception raised inside a callback invoked by the core.

CallbackExceptionGroup

Aggregates multiple CallbackException instances raised within one frame.

CoreShutDownException

Raised when an operation is attempted on a core that has been shut down.

UnsupportedEnvCall

Raised by a driver to signal that it does not support an environment call.

exception UnsupportedEnvCall[source]

Bases: Exception

Raised by a driver to signal that it does not support an environment call.

__init__(message, *args)[source]

Construct the exception with a human-readable message.

classmethod __new__(*args, **kwargs)
add_note(note, /)

Add a note to the exception

args
with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

exception CoreShutDownException[source]

Bases: Exception

Raised when an operation is attempted on a core that has been shut down.

__init__(*args)[source]

Construct the exception with the standard shutdown message.

classmethod __new__(*args, **kwargs)
add_note(note, /)

Add a note to the exception

args
with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

exception CallbackException[source]

Bases: RuntimeError

Wraps an exception raised inside a callback invoked by the core.

__init__(message, *args)[source]

Construct the wrapper with a human-readable message.

classmethod __new__(*args, **kwargs)
add_note(note, /)

Add a note to the exception

args
with_traceback(tb, /)

Set self.__traceback__ to tb and return self.

exception CallbackExceptionGroup[source]

Bases: ExceptionGroup

Aggregates multiple CallbackException instances raised within one frame.

__init__(message, exceptions)[source]

Construct the group with a human-readable message and the wrapped exceptions.

static __new__(cls, message, exceptions)[source]

Construct the group via ExceptionGroup’s __new__ (required for subclassing).

add_note(note, /)

Add a note to the exception

args
derive(excs, /)
exceptions

nested exceptions

message

exception message

split(matcher_value, /)
subgroup(matcher_value, /)
with_traceback(tb, /)

Set self.__traceback__ to tb and return self.