Table of Contents

Class InvalidMetadata

Namespace
Gym.Exceptions
Assembly
Gym.dll

An env's metadata is not valid (for example render_fps missing where needed).

public class InvalidMetadata : Error, ISerializable
Inheritance
InvalidMetadata
Implements
Inherited Members
Extension Methods

Remarks

Reference: gymnasium/error.py.

Constructors

InvalidMetadata()

An error without a message; its Message is empty, as Python's str(error) is.

public InvalidMetadata()

InvalidMetadata(string)

An error with Gymnasium's message.

public InvalidMetadata(string message)

Parameters

message string

The message; Gym's own raise sites pass Gymnasium's text verbatim.

InvalidMetadata(string, Exception)

An error with a message and its cause.

public InvalidMetadata(string message, Exception innerException)

Parameters

message string

The message.

innerException Exception

The underlying cause.