DataSchemaError Constructor (String, String, Int32, ErrorSeverity)
Initializes a new instance of the DataSchemaError class by using the provided message, document name, and error code, and by indicating the severity of the error.
Namespace: Microsoft.Data.Schema
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
document As String, _
errorCode As Integer, _
severity As ErrorSeverity _
)
public DataSchemaError(
string message,
string document,
int errorCode,
ErrorSeverity severity
)
public:
DataSchemaError(
String^ message,
String^ document,
int errorCode,
ErrorSeverity severity
)
new :
message:string *
document:string *
errorCode:int *
severity:ErrorSeverity -> DataSchemaError
public function DataSchemaError(
message : String,
document : String,
errorCode : int,
severity : ErrorSeverity
)
Parameters
- message
Type: System.String
A string that indicates the reason that the error occurred.
- document
Type: System.String
A string that contains the name of the file where the error occurred.
- errorCode
Type: System.Int32
An int that contains the error code.
- severity
Type: Microsoft.Data.Schema.ErrorSeverity
A member of the ErrorSeverity enumeration that indicates the severity of this error.
Exceptions
Exception | Condition |
---|---|
[System.ArgumentOutOfRangeException] | The errorCode supplied is greater than the maximum allowed or is less than zero. |
.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
Microsoft.Data.Schema Namespace
ErrorSeverity