I wanted to help out this guy who had a catch(Exception)
clause in his code. Bad practice. Should catch specific exceptions. OK, so what are they?
I consulted the documentation for the only method he was calling, OdbcAdapter.Fill(DataSet), and found the input/output list, which usually lists all the possible exceptions. None listed. Does it ever throw any?
Then I found this documentation, which suggests that Fill
doesn't throw exceptions, it swallows them and instead raises events.
But then I found this.
And this.
Does OdbcDataAdapter.Fill(DataSet)
throw exceptions or not? What exceptions? Does it raise events or not?