docs.unity3d.com
    Show / Hide Table of Contents

    Class UnityAgentsException

    Contains exceptions specific to ML-Agents.

    Inheritance
    Object
    Exception
    UnityAgentsException
    Inherited Members
    Exception.GetBaseException()
    Exception.ToString()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.Message
    Exception.Data
    Exception.InnerException
    Exception.TargetSite
    Exception.StackTrace
    Exception.HelpLink
    Exception.Source
    Exception.HResult
    Exception.SerializeObjectState
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.MemberwiseClone()
    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

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023