Class ValidationExceptionManager
Class that manages the validation exceptions for this package.
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 |
IsValid
Will return true if the package contains 1 or more validation exceptions
Declaration
public bool IsValid { 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, 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 |
Returns
Type | Description |
---|---|
Boolean | True if the error is part of the validation exception list. |