Class ValidationExceptionManager | Package Validation Suite | 0.13.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class ValidationExceptionManager

    Class that manages the validation exceptions for this package.

    Inheritance
    Object
    ValidationExceptionManager
    Namespace: UnityEditor.PackageManager.ValidationSuite
    Syntax
    public class ValidationExceptionManager

    Constructors

    ValidationExceptionManager(String)

    Constructor for the Validation Exception Manager

    Declaration
    public ValidationExceptionManager(string packagePath)
    Parameters
    Type Name Description
    String packagePath

    Path that contains the exception file.

    Properties

    HasExceptions

    Will return true if the package contains 1 or more validation exceptions

    Declaration
    public bool HasExceptions { get; }
    Property Value
    Type Description
    Boolean

    Methods

    CheckValidationExceptions(String)

    Checks the validity of the validation exception list.

    Declaration
    public IEnumerable<string> CheckValidationExceptions(string packageVersion)
    Parameters
    Type Name Description
    String packageVersion

    Package version used for comparison.

    Returns
    Type Description
    IEnumerable<String>

    Returns a list of issues found with the exception list. That list will be empty when no issues are found.

    IsException(String, String)

    Tests whether a test class has been exceptioned completely.

    Declaration
    public bool IsException(string validationTest, string packageVersion)
    Parameters
    Type Name Description
    String validationTest

    Validation test display name

    String packageVersion

    Version of the package this exception is for.

    Returns
    Type Description
    Boolean

    True if the error is part of the validation exception list.

    IsException(String, String, String)

    Tests whether the requested error is part of the validation exception list.

    Declaration
    public bool IsException(string validationTest, string validationError, string packageVersion)
    Parameters
    Type Name Description
    String validationTest

    Validation test display name

    String validationError

    Error string, verbatim

    String packageVersion

    Version of the package this exception is for.

    Returns
    Type Description
    Boolean

    True if the error is part of the validation exception list.

    Back to top
    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