bpod_core.ipc.ErrorData
- class bpod_core.ipc.ErrorData
Bases:
StructA struct representing error data.
- static from_exception(exception=None) ErrorData
Serialize an exception to
ErrorData.- Parameters:
exception (
BaseException, optional) – The exception to serialize.- Returns:
An ErrorData struct containing the serialized exception data.
- Return type:
- Raises:
ValueError – If no exception is provided and no active exception is available.