Table of Contents

Class InvalidProbability

Namespace
Gym.Exceptions
Assembly
Gym.dll

A probability outside [0, 1] (for example StickyAction's).

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

Remarks

Reference: gymnasium/error.py.

Constructors

InvalidProbability()

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

public InvalidProbability()

InvalidProbability(string)

An error with Gymnasium's message.

public InvalidProbability(string message)

Parameters

message string

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

InvalidProbability(string, Exception)

An error with a message and its cause.

public InvalidProbability(string message, Exception innerException)

Parameters

message string

The message.

innerException Exception

The underlying cause.