Class ValidationExceptionManager
Class that manages the validation exceptions for this package.
Namespace: UnityEditor.PackageManager.ValidationSuite
Syntax
public class ValidationExceptionManager : object
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
HasErrorExceptions
Will return true if the package contains 1 or more validation error exceptions
Declaration
public bool HasErrorExceptions { get; }
Property Value
Type | Description |
---|---|
Boolean |
HasExceptions
Will return true if the package contains 1 or more validation exceptions
Declaration
public bool HasExceptions { get; }
Property Value
Type | Description |
---|---|
Boolean |
HasWarningExceptions
Will return true if the package contains 1 or more validation warning exceptions
Declaration
public bool HasWarningExceptions { 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. |
IsErrorException(String, String)
Tests whether a test class has been exceptioned completely with respect to errors.
Declaration
public bool IsErrorException(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. |
IsErrorException(String, String, String)
Tests whether the requested error is part of the validation exception list.
Declaration
public bool IsErrorException(string validationTest, string validationMessage, string packageVersion)
Parameters
Type | Name | Description |
---|---|---|
String | validationTest | Validation test display name |
String | validationMessage | 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. |
IsWarningException(String, String)
Tests whether a test class has been exceptioned completely with respect to warnings.
Declaration
public bool IsWarningException(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 warning is part of the validation exception list. |
IsWarningException(String, String, String)
Tests whether the requested warning is part of the validation exception list.
Declaration
public bool IsWarningException(string validationTest, string validationMessage, string packageVersion)
Parameters
Type | Name | Description |
---|---|---|
String | validationTest | Validation test display name |
String | validationMessage | Warning string, verbatim |
String | packageVersion | Version of the package this exception is for. |
Returns
Type | Description |
---|---|
Boolean | True if the warning is part of the validation exception list. |