GeneratorUserException Constructor (String, Exception, Severity, ErrorType)
Initializes an instance of the GeneratorUserException class with a specified error message, severity, error type, 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, _
severity As Severity, _
errorType As ErrorType _
)
'Usage
Dim message As String
Dim innerException As Exception
Dim severity As Severity
Dim errorType As ErrorType
Dim instance As New GeneratorUserException(message, _
innerException, severity, errorType)
public GeneratorUserException(
string message,
Exception innerException,
Severity severity,
ErrorType errorType
)
public:
GeneratorUserException(
String^ message,
Exception^ innerException,
Severity severity,
ErrorType errorType
)
public function GeneratorUserException(
message : String,
innerException : Exception,
severity : Severity,
errorType : ErrorType
)
Parameters
- message
Type: System.String
A message that describes the error.
- innerException
Type: System.Exception
The exception that is the cause of the current exception.
- severity
Type: Microsoft.VisualStudio.TeamSystem.Data.DataGenerator.Severity
The severity of the error.
- errorType
Type: Microsoft.VisualStudio.TeamSystem.Data.DataGenerator.ErrorType
The type of the error.
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.
Permissions
- 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 Members
GeneratorUserException Overload
Microsoft.VisualStudio.TeamSystem.Data.DataGenerator Namespace
DataException