DataException Class 

The exception that is thrown by the data generation engine, if an error occurs while generating data.

Namespace: Microsoft.VisualStudio.TeamSystem.Data.Common.Exceptions
Assembly: Microsoft.VisualStudio.TeamSystem.Data (in microsoft.visualstudio.teamsystem.data.dll)

Syntax

'Declaration
<SerializableAttribute> _
<CLSCompliantAttribute(True)> _
Public Class DataException
    Inherits Exception
'Usage
Dim instance As DataException
[SerializableAttribute] 
[CLSCompliantAttribute(true)] 
public class DataException : Exception
[SerializableAttribute] 
[CLSCompliantAttribute(true)] 
public ref class DataException : public Exception
/** @attribute SerializableAttribute() */ 
/** @attribute CLSCompliantAttribute(true) */ 
public class DataException extends Exception
SerializableAttribute 
CLSCompliantAttribute(true) 
public class DataException extends Exception

Remarks

This class is serializable. This is the type of exception that users should throw for any errors that occur in their custom data generators.

Inheritance Hierarchy

System.Object
   System.Exception
    Microsoft.VisualStudio.TeamSystem.Data.Common.Exceptions.DataException
       Microsoft.VisualStudio.TeamSystem.Data.DataGenerator.GeneratorUserException
       Microsoft.VisualStudio.TeamSystem.Data.DataGenerator.InputValidationException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

DataException Members
Microsoft.VisualStudio.TeamSystem.Data.Common.Exceptions Namespace
Generator

Other Resources

Creating Custom Data Generators