Class UnityAgentsException
Contains exceptions specific to ML-Agents.
Namespace: Unity.MLAgents
Syntax
public class UnityAgentsException : ExceptionConstructors
UnityAgentsException(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
A constructor is needed for serialization when an exception propagates from a remoting server to the client.
Declaration
protected UnityAgentsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | Data for serializing/de-serializing | 
| System.Runtime.Serialization.StreamingContext | context | Describes the source and destination of the serialized stream | 
UnityAgentsException(String)
When a UnityAgentsException is called, the timeScale is set to 0. The simulation will end since no steps will be taken.
Declaration
public UnityAgentsException(string message)Parameters
| Type | Name | Description | 
|---|---|---|
| String | message | The exception message |