Class UnityAgentsException
Contains exceptions specific to ML-Agents.
Inherited Members
Namespace: Unity.MLAgents
Syntax
[Serializable]
public class UnityAgentsException : Exception, ISerializable, _Exception
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 |