-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArcGIS GeodatabaseTableException #264
base: dev
Are you sure you want to change the base?
Conversation
@@ -44,7 +44,7 @@ public void ClearExistingDataset(string featureClassName) | |||
schemaBuilder.Build(); | |||
MapView.Active.Redraw(true); | |||
} | |||
catch (Exception ex) when (!ex.IsFatal()) //(GeodatabaseTableException) | |||
catch (GeodatabaseTableException ex) | |||
{ | |||
// "The table was not found." | System.InvalidCast |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this also be handling System.InvalidCastException
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks legit with your changes already, we don't seems to cast anything here, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't look to be. But there was this comment so I thought I'd ask.
Perhaps GetDefinition<FeatureClassDefinition>
may throw if there is something in the db with the name, but it isn't a FeatureClassDefinition
Not sure if that's even a possibility.
Pull request was closed
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #264 +/- ##
=====================================
Coverage 7.86% 7.86%
=====================================
Files 235 235
Lines 4477 4477
Branches 523 523
=====================================
Hits 352 352
Misses 4110 4110
Partials 15 15 ☔ View full report in Codecov by Sentry. |
Where possible, we should be specific about the exceptions we intend to handle