Share via


DataRuleException Constructor

Creates a new instance of the DataRuleException class by using a system-supplied message that states the error.

Namespace:  Microsoft.Data.Schema.StaticCodeAnalysis
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Sub New
public DataRuleException()
public:
DataRuleException()
new : unit -> DataRuleException
public function DataRuleException()

Remarks

This constructor initializes the Message property of the new instance to a system-supplied [message] that states the error, such as "DefaultMessageDisplayedByParameterlessCtorWriterMustSupply". This message considers the current system culture.

.NET Framework Security

See Also

Reference

DataRuleException Class

DataRuleException Overload

Microsoft.Data.Schema.StaticCodeAnalysis Namespace

DataRuleException

Other Resources

Handling and Throwing Exceptions