Table of Contents

Class DeprecatedWrapper

Namespace
Gym.Exceptions
Assembly
Gym.dll

Raised when importing an old version of a wrapper. It is an ImportError, not an Error, as in Gymnasium: catch (Error) does not catch it.

public class DeprecatedWrapper : ImportError, ISerializable, INumSharpException
Inheritance
DeprecatedWrapper
Implements
Inherited Members
Extension Methods

Remarks

Reference: gymnasium/error.py.

Constructors

DeprecatedWrapper()

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

public DeprecatedWrapper()

DeprecatedWrapper(string)

An error with Gymnasium's message.

public DeprecatedWrapper(string message)

Parameters

message string

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

DeprecatedWrapper(string, Exception)

An error with a message and its cause.

public DeprecatedWrapper(string message, Exception innerException)

Parameters

message string

The message.

innerException Exception

The underlying cause.