Class UnregisteredEnv
- Namespace
- Gym.Exceptions
- Assembly
- Gym.dll
The registry has no env for the requested id. Catch it to handle any of its three precise causes (NamespaceNotFound, NameNotFound, VersionNotFound).
public class UnregisteredEnv : Error, ISerializable
- Inheritance
-
UnregisteredEnv
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Reference: gymnasium/error.py.
Constructors
UnregisteredEnv()
An error without a message; its Message is empty, as Python's str(error) is.
public UnregisteredEnv()
UnregisteredEnv(string)
An error with Gymnasium's message, which callers and tests match verbatim.
public UnregisteredEnv(string message)
Parameters
messagestringThe message; Gym's own raise sites pass Gymnasium's text verbatim.
UnregisteredEnv(string, Exception)
An error with a message and the exception that caused it.
public UnregisteredEnv(string message, Exception innerException)