Struct AsyncWorkerError
A worker's failure, as Gymnasium's error queue holds it: the worker's index, the exception (rethrown to the
vector env's caller as it was thrown) and its text with the stack trace (Python's traceback.format_exc()).
public readonly record struct AsyncWorkerError : IEquatable<AsyncWorkerError>
- Implements
- Inherited Members
- Extension Methods
Constructors
AsyncWorkerError(int, Exception, string)
A worker's failure, as Gymnasium's error queue holds it: the worker's index, the exception (rethrown to the
vector env's caller as it was thrown) and its text with the stack trace (Python's traceback.format_exc()).
public AsyncWorkerError(int Index, Exception Exception, string Trace)
Parameters
IndexintThe failing worker's sub-env.
ExceptionExceptionThe exception.
TracestringThe exception's text with its .NET stack trace, ending with a newline as Python's does; logged by the parent.
Properties
Exception
The exception.
public Exception Exception { get; init; }
Property Value
Index
The failing worker's sub-env.
public int Index { get; init; }
Property Value
Trace
The exception's text with its .NET stack trace, ending with a newline as Python's does; logged by the parent.
public string Trace { get; init; }