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.

Exceptions

Exception Condition
[System.ArgumentOutOfRangeException]

The errorCode supplied is greater than the maximum allowed or is less than zero.

.NET Framework Security

See Also

Reference

DataSchemaError Class

DataSchemaError Overload

Microsoft.Data.Schema Namespace

ErrorSeverity

DataSchemaError