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
- message
Type: System.String
A String that contains the message that states the error.
- innerException
Type: System.Exception
An Exception that is the cause of the current exception.
- severity
Type: Microsoft.Data.Schema.Tools.DataGenerator.Severity
A member of the Severity enumeration.
- errorType
Type: Microsoft.Data.Schema.Tools.DataGenerator.ErrorType
A member of the ErrorType enumeration.
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
- 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
GeneratorUserException Overload
Microsoft.Data.Schema.Tools.DataGenerator Namespace
Severity
ErrorType