InputValidationException Constructor (String, Severity, Exception)
Initializes a new instance of the InputValidationException class with a specified error message, severity, and a reference to the inner exception that is the cause of this exception.
Namespace: Microsoft.VisualStudio.TeamSystem.Data.DataGenerator
Assembly: Microsoft.VisualStudio.TeamSystem.Data (in Microsoft.VisualStudio.TeamSystem.Data.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
severity As Severity, _
innerException As Exception _
)
'Usage
Dim message As String
Dim severity As Severity
Dim innerException As Exception
Dim instance As New InputValidationException(message, _
severity, innerException)
public InputValidationException(
string message,
Severity severity,
Exception innerException
)
public:
InputValidationException(
String^ message,
Severity severity,
Exception^ innerException
)
public function InputValidationException(
message : String,
severity : Severity,
innerException : Exception
)
Parameters
- message
Type: System.String
A message that describes the error.
- severity
Type: Microsoft.VisualStudio.TeamSystem.Data.DataGenerator.Severity
The severity of the error that is encountered during validation.
- innerException
Type: System.Exception
The exception that is the cause of the current exception.
Remarks
The possible severities are Error, Warning, and Information.
An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
InputValidationException Class
InputValidationException Members
InputValidationException Overload
Microsoft.VisualStudio.TeamSystem.Data.DataGenerator Namespace
DataException