Share via


InputValidationException Constructor (String, Exception)

Initializes a new instance of the InputValidationException class by using the specified message and a reference to the inner exception that is the cause of this exception.

Namespace:  Microsoft.Data.Schema.Tools.DataGenerator
Assembly:  Microsoft.Data.Schema.Tools (in Microsoft.Data.Schema.Tools.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
public InputValidationException(
    string message,
    Exception innerException
)
public:
InputValidationException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> InputValidationException
public function InputValidationException(
    message : String, 
    innerException : Exception
)

Parameters

  • innerException
    Type: System.Exception
    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 includes a reference to the previous exception in the InnerException property.

.NET Framework Security

See Also

Reference

InputValidationException Class

InputValidationException Overload

Microsoft.Data.Schema.Tools.DataGenerator Namespace

InputValidationException