docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TestDataNotFoundException

    Thrown when a test data asset declared with RequireTestDataAttribute cannot be loaded. Tests must always have access to their declared assets, so a miss fails the test; the message states what was declared, what was built, and what was searched.

    Inheritance
    object
    Exception
    TestDataNotFoundException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.TestTools.Graphics
    Assembly: UnityEngine.TestTools.Graphics.dll
    Syntax
    public sealed class TestDataNotFoundException : Exception, ISerializable

    Constructors

    TestDataNotFoundException(string)

    Creates a new instance with the load diagnostics as the message.

    Declaration
    public TestDataNotFoundException(string message)
    Parameters
    Type Name Description
    string message

    The diagnostics describing the failed lookup.

    Implements

    ISerializable
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)