Table of Contents

Class WarningCatcher

Namespace
Gym.Utils
Assembly
Gym.dll

A Catch() block: the warnings issued while it was the innermost active catcher, in order. Dispose it (using) to end the block.

public sealed class WarningCatcher : IDisposable
Inheritance
WarningCatcher
Implements
Inherited Members
Extension Methods

Properties

Records

A snapshot of the warnings recorded so far, oldest first (Python's caught list).

public IReadOnlyList<WarningMessage> Records { get; }

Property Value

IReadOnlyList<WarningMessage>

Methods

Dispose()

Ends the block: later warnings are shown again, and the registry is cleared as Python's filters are restored.

public void Dispose()