Share via


InputValidationException Constructor (String, Exception)

Initializes a new instance of the InputValidationException class with a specified error message 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, _
    innerException As Exception _
)
'Usage
Dim message As String
Dim innerException As Exception

Dim instance As New InputValidationException(message, innerException)
public InputValidationException (
    string message,
    Exception innerException
)
public:
InputValidationException (
    String^ message, 
    Exception^ innerException
)
public InputValidationException (
    String message, 
    Exception innerException
)
public function InputValidationException (
    message : String, 
    innerException : Exception
)

Parameters

  • message
    A message that describes the error.
  • innerException
    The exception that is the cause of the current exception.

Remarks

By default, this constructor sets the severity level to Error. The base DataException class does not implement this constructor.

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.

See Also

Reference

InputValidationException Class
InputValidationException Members
Microsoft.VisualStudio.TeamSystem.Data.DataGenerator Namespace
Message
InnerException
DataException