The Failure object contains much of the same information as an exception but is not derived from Exception and is now throwable.
Commands that operate on a collection of items, each of which may succeed or fail independently of the others will return an array of Failure objects representing the items that had trouble.
The Failure object also contains fields that describe the context in which the error occurred. A smart client may use these to decide about how to handle the error. Irrelevant information remains null and will not be sent as part of the SOAP reply.
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Thetype exposes the following members.
|Code||Short unique string that describes the error. Usually the classname of the exception. Synonymous with SoapException.Code|
|ComputerName||Error context information.|
|IdentityName||Error context information.|
|ItemId||The item's ID. Used to retrieve file contents|
|LocalItem||Error context information.|
|Message||Human readable message that describes the error. Synonymous with SoapException.Message|
|RequestType||Type of change requested in the operation. Only set when PendChanges() is called|
|ResourceName||Error context information.|
|ServerItem||Error context information.|
|Severity||Indicates the failure "type"|
|WorkspaceName||Error context information.|
|WorkspaceOwner||Error context information.|
|Equals||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|