Apparently because minitest asserts using class==. This means I'd have to change from StatementInvalid to WrappedDatabaseException everywhere in the test suite, and if someone is relying on StatementInvalid in their tests using assert_raise, it'd also fail, making this change not backward compatible.