DataException Class

The base class for exceptions that custom data generators and custom distributions throw.

Namespace: Microsoft.VisualStudio.TeamSystem.Data
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 class is the type of exception that you should throw for any errors that occur in your custom data generators and distributions.

InputValidationException and GeneratorUserException inherit from this class.

Inheritance Hierarchy

System.Object
   System.Exception
    Microsoft.VisualStudio.TeamSystem.Data.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 Namespace
Generator

Other Resources

Creating Custom Data Generators