Class NotSteppingError
- Namespace
- Gym.Exceptions
- Assembly
- Gym.dll
0.2's "not running an async step" error, kept so 0.2 code that catches it still compiles (DR-58). It is
NoAsyncCallError's base class, so catch (NotSteppingError) catches AsyncVectorEnv's
error for a _wait without its _async, the same situation.
[Obsolete("0.2's NotSteppingError: catch Gym.Exceptions.NoAsyncCallError, which AsyncVectorEnv raises. Removed in 2.0 with Gym.Legacy.")]
public class NotSteppingError : Exception, ISerializable
- Inheritance
-
NotSteppingError
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Obsolete, and removed in 2.0 with Gym.Legacy. 0.2 never threw it, so a catch of it that never ran
in 0.2 can now run. Like Gymnasium's NoAsyncCallError, it is not an Error; the extra level
changes no message and not the Python type the subclass stands for.
Constructors
NotSteppingError()
An error with 0.2's own message, not running an async step.
public NotSteppingError()
NotSteppingError(string)
An error with the given message; NoAsyncCallError passes Gymnasium's through it.
public NotSteppingError(string message)
Parameters
messagestringThe message.
NotSteppingError(string, Exception)
An error with a message and its cause.
public NotSteppingError(string message, Exception innerException)