Class AlreadySteppingError
- Namespace
- Gym.Exceptions
- Assembly
- Gym.dll
0.2's "already running an async step" error, kept so 0.2 code that catches it still compiles (DR-58). It is
AlreadyPendingCallError's base class, so catch (AlreadySteppingError) catches
AsyncVectorEnv's error for a call started while another is pending, the same situation.
[Obsolete("0.2's AlreadySteppingError: catch Gym.Exceptions.AlreadyPendingCallError, which AsyncVectorEnv raises. Removed in 2.0 with Gym.Legacy.")]
public class AlreadySteppingError : Exception, ISerializable
- Inheritance
-
AlreadySteppingError
- 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 AlreadyPendingCallError, it is not an Error; the extra
level changes no message and not the Python type the subclass stands for.
Constructors
AlreadySteppingError()
An error with 0.2's own message, already running an async step.
public AlreadySteppingError()
AlreadySteppingError(string)
An error with the given message; AlreadyPendingCallError passes Gymnasium's through it.
public AlreadySteppingError(string message)
Parameters
messagestringThe message.
AlreadySteppingError(string, Exception)
An error with a message and its cause.
public AlreadySteppingError(string message, Exception innerException)