Class GovernanceContractViolationException
Represents a reusable AsiBackbone contract-test invariant failure.
public sealed class GovernanceContractViolationException : InvalidOperationException, ISerializable
- Inheritance
-
GovernanceContractViolationException
- Implements
- Inherited Members
Remarks
Contract helpers throw this exception instead of binding the testing package to a specific unit-test framework. xUnit, NUnit, MSTest, and custom harnesses can assert on this exception type while sharing the same invariant checks.
Constructors
GovernanceContractViolationException(string)
Initializes a new instance of the GovernanceContractViolationException class.
public GovernanceContractViolationException(string message)
Parameters
messagestringThe contract failure message.
GovernanceContractViolationException(string, Exception)
Initializes a new instance of the GovernanceContractViolationException class.
public GovernanceContractViolationException(string message, Exception innerException)