This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITopologyRuleContainer Interface > ITopologyRuleContainer.PromoteToRuleException Method (ArcObjects .NET 10.5 SDK) |
Promotes a topology error to an exception.
[Visual Basic .NET] Public Sub PromoteToRuleException ( _ ByVal errorException As ITopologyErrorFeature _ )
[C#] public void PromoteToRuleException ( ITopologyErrorFeature errorException );
[C++]
HRESULT PromoteToRuleException(
ITopologyErrorFeature* errorException
);
[C++]
Parameters errorException [in]
errorException is a parameter of type ITopologyErrorFeature
The PromoteToRuleException method will promote the specified error to an exception feature. On a topology in an ArcSDE geodatabase, PromoteToRuleException, must be called from within an edit session and edit operation. Topology Exceptions arise when a topology rule is purposefully violated. Marking purposeful topology errors as exceptions allows other clients of the topology to handle them in an appropriate or specific manner, e.g., in reporting or symbolization.
Note that it is also possible to demote an exception or mark the exception as an error with the ITopologyRuleContainer::DemoteFromRuleException method.