Class TargetContractException
- Namespace
- IntentSharp.Testing
- Assembly
- IntentSharp.dll
A target failed a step of RunAsync(ITarget, TargetContractScript, CancellationToken). Step names the step, and the message says what the kit expected and what the target did, so a test of any framework shows why it failed.
public sealed class TargetContractException : IntentSharpException, ISerializable
- Inheritance
-
objectExceptionTargetContractException
- Implements
-
ISerializable
- Inherited Members
-
Exception.GetBaseException()Exception.GetType()Exception.ToString()Exception.DataException.HelpLinkException.HResultException.InnerExceptionException.MessageException.SourceException.StackTraceException.TargetSiteobject.Equals(object)object.Equals(object, object)object.GetHashCode()object.ReferenceEquals(object, object)
- Extension Methods
Constructors
- TargetContractException(string)
Creates the exception with a message; set Step and Target with an initializer.
- TargetContractException(string, Exception)
Creates the exception with a message and the exception the target or the runtime threw.
Properties
- Step
The step that failed:
script(the script cannot be run against this target),describe(two descriptions of the unchanged target differ, or one fails),run(the whole operation did not execute the scripted command, or touched other entities or returned too few records) orunchecked(a command that was not checked could reach the target). Empty unless set.
- Target
The name of the target that failed; null when it is not known.