Skip to content
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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Conversation

JR-Morgan
Copy link
Member

Where possible, we should be specific about the exceptions we intend to handle

@JR-Morgan JR-Morgan enabled auto-merge (squash) September 20, 2024 10:51
@@ -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
Copy link
Member Author

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?

Copy link
Contributor

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?

Copy link
Member Author

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.

@JR-Morgan JR-Morgan closed this Sep 20, 2024
auto-merge was automatically disabled September 20, 2024 10:54

Pull request was closed

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 7.86%. Comparing base (6deb59e) to head (bb33685).

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.
📢 Have feedback on the report? Share it here.

@JR-Morgan JR-Morgan reopened this Sep 20, 2024
@JR-Morgan JR-Morgan enabled auto-merge (squash) September 20, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants