Table of Contents

Class DictMergingException

Namespace
Gym.Collections
Assembly
Gym.dll

Thrown by the legacy deep merge (Merger, Merge(IDictionary, MergePrefer)) when merging one key fails; the message names the key and InnerException holds the cause. Keys merged before the failing one stay merged: the target is left half-merged.

[Serializable]
[Obsolete("Thrown only by the legacy Dict's deep merge; Gym.Envs.Info.Update needs none. Removed in 2.0 with Gym.Legacy.")]
public class DictMergingException : Exception, ISerializable
Inheritance
DictMergingException
Implements
Inherited Members
Extension Methods

Remarks

Obsolete with Dict (DR-56) and removed in 2.0. Update(IEnumerable<KeyValuePair<string, object?>>), its replacement, overwrites one level deep and has no failure of its own to report.

Constructors

DictMergingException()

An error without a message of its own (.NET's default text).

public DictMergingException()

DictMergingException(string)

An error naming the key whose merge failed.

public DictMergingException(string message)

Parameters

message string

The message, naming the key.

DictMergingException(string, Exception)

An error naming the key whose merge failed, with the failure itself.

public DictMergingException(string message, Exception inner)

Parameters

message string

The message, naming the key.

inner Exception

The exception the key's merge threw.