Share via


GeneratorUserException Constructor (String, Exception, Severity, ErrorType)

Initializes a new instance of the GeneratorUserException class. An instance has a specified error message, a reference to the inner exception that is the cause of this exception, severity, and error type.

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, _
    severity As Severity, _
    errorType As ErrorType _
)
public GeneratorUserException(
    string message,
    Exception innerException,
    Severity severity,
    ErrorType errorType
)
public:
GeneratorUserException(
    String^ message, 
    Exception^ innerException, 
    Severity severity, 
    ErrorType errorType
)
new : 
        message:string * 
        innerException:Exception * 
        severity:Severity * 
        errorType:ErrorType -> GeneratorUserException
public function GeneratorUserException(
    message : String, 
    innerException : Exception, 
    severity : Severity, 
    errorType : ErrorType
)

Parameters

Remarks

The possible severities are Error(), Warning(), and Information().

The possible error types are Configuration(), DataAccess(), and Unknown().

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.

.NET Framework Security

See Also

Reference

GeneratorUserException Class

GeneratorUserException Overload

Microsoft.Data.Schema.Tools.DataGenerator Namespace

Severity

ErrorType

InnerException