Parameters
- error
- The topology error to be marked as an exception.
Exception | Description |
---|---|
System.ArgumentNullException | error is null. |
System.InvalidOperationException | This operation cannot be invoked inside ArcGIS.Core.Data.Geodatabase.ApplyEdits or when an edit operation is in progress. |
ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
Topology errors occur when topology rules are violated during the Validate operation. There will be instances when the occurrence of a defined error may be acceptable. For example, street lines cannot have dangles, i.e., they must be connected to another streets. However, a cul-de-sac or a road which is closed at one end is an exception. Once an error is marked as an exception, it remains that way until it is unmarked as an exception, resetting it as an error.
This operation generates its own editing transaction and therefore cannot be wrapped inside a separate transaction.
When writing an ArcGIS Pro add-in, the extension method ArcGIS.Core.Data.CoreDataExtensions.MarkAsExceptionInEditOperation should be used instead. This extension method will create an edit operation on the Pro undo/redo stack and redraw any affected layers.
Target Platforms: Windows 11, Windows 10