GeneratorUserException Constructor (String, Exception)
Initializes a new instance of the GeneratorUserException class by using the provided error message and the 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 GeneratorUserException(
string message,
Exception innerException
)
public:
GeneratorUserException(
String^ message,
Exception^ innerException
)
new :
message:string *
innerException:Exception -> GeneratorUserException
public function GeneratorUserException(
message : String,
innerException : Exception
)
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.
Remarks
By default, this constructor sets the Severity() to Error() and the ErrorType() to Unknown().
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
- 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()
Severity
ErrorType()
ErrorType