Class MissingKeysToAction
Raised when Run(IEnv, bool?, double?, double?, PlayCallback?, object?, BigInteger?, object?, bool, EnvViewerFactory?, PygameContext?) or PlayableGame is given no key mapping and the env has none
(Gymnasium's MissingKeysToAction): pass keysToAction, or give the env a get_keys_to_action
attribute.
public class MissingKeysToAction : Exception, ISerializable
- Inheritance
-
MissingKeysToAction
- Implements
- Inherited Members
- Extension Methods
Remarks
Derived from Exception, as Gymnasium's derives from Python's Exception and not from
gymnasium.error.Error.
Reference: gymnasium/utils/play.py.
Constructors
MissingKeysToAction(string)
The error with a message naming the env.
public MissingKeysToAction(string message)
Parameters
messagestringWhat is missing.