Thrift implemented dart output ~3 years ago and in doing so outputs exceptions in classes that extend Error. At the time this commit was done this was acceptable. However, a year or so after this commit Effective Dart introduced a rule that you "DON'T" catch Errors or anything that implements them. However, Dart SDK had for the Error type ~5 years ago that they should not be used for expect or catch.
As such this ticket requests that the generator for dart code should have exception types implement Exception rather than extending Error. Although Error and Exception are used pretty interchangeably in terms of throwing, they do differ for the expect/catch and as such would warrant being included in a major version change.