Class UnityAgentsException
Contains exceptions specific to ML-Agents.
Implements
Inherited Members
Namespace: Unity.MLAgents
Assembly: Unity.ML-Agents.dll
Syntax
[Serializable]
public class UnityAgentsException : Exception, ISerializable
Constructors
UnityAgentsException(SerializationInfo, StreamingContext)
A constructor is needed for serialization when an exception propagates from a remoting server to the client.
Declaration
protected UnityAgentsException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | Data for serializing/de-serializing |
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 |