Table of Contents

Class ClosedEnvironmentError

Namespace
Gym.Exceptions
Assembly
Gym.dll

reset or step on an environment that was closed.

public class ClosedEnvironmentError : Exception, ISerializable
Inheritance
ClosedEnvironmentError
Implements
Inherited Members
Extension Methods

Remarks

Reference: gymnasium/error.py.

Constructors

ClosedEnvironmentError()

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

public ClosedEnvironmentError()

ClosedEnvironmentError(string)

An error with Gymnasium's message.

public ClosedEnvironmentError(string message)

Parameters

message string

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

ClosedEnvironmentError(string, Exception)

An error with a message and its cause.

public ClosedEnvironmentError(string message, Exception innerException)

Parameters

message string

The message.

innerException Exception

The underlying cause.