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

Extract exception factory methods into specific exceptions #3525

Merged
merged 1 commit into from
Apr 29, 2019

Conversation

jwage
Copy link
Member

@jwage jwage commented Apr 19, 2019

Q A
Type improvement
BC Break no

Summary

Continuing work started in #3131

@jwage
Copy link
Member Author

jwage commented Apr 29, 2019

@morozov I got this rebased and cleaned up. I didn't do too much else from where the PR already was when work on it was stopped. Can we merge get this merged?

@morozov
Copy link
Member

morozov commented Apr 29, 2019

@jwage sure, as soon as the builds are green. BTW would it make sense if you created PRs from your personal fork in order to not have Travis run the same jobs twice?

@jwage
Copy link
Member Author

jwage commented Apr 29, 2019

The failures seem not related to any of the changes in this PR. Travis fails because of sqlsrv and php 7.4.

I was wondering about that, why it runs twice. I wish there was another way to make it not run twice without having to work in a fork.

@morozov
Copy link
Member

morozov commented Apr 29, 2019

The SQL Server failures will probably be fixed by the changes in #3528. Could you try rebasing?

I wish there was another way to make it not run twice without having to work in a fork.

What's the problem with working in a fork?

@jwage
Copy link
Member Author

jwage commented Apr 29, 2019

What's the problem with working in a fork?

Nothing, it is just different and another "hop" in the workflow that I am not used to. If this is how everyone else is doing it, then I will adapt.

@morozov
Copy link
Member

morozov commented Apr 29, 2019

If this is how everyone else is doing it […]

I believe so unless it's someone's personal project.

@jwage
Copy link
Member Author

jwage commented Apr 29, 2019

This passes now after rebasing against develop.

Copy link
Member

@morozov morozov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there's one unintentional change. Otherwise, good to go.

lib/Doctrine/DBAL/Connection.php Outdated Show resolved Hide resolved
Extract Doctrine\DBAL\DBALException::notSupported()
Extract Doctrine\DBAL\DBALException::invalidPlatformVersionSpecified()
Extract Doctrine\DBAL\DBALException::invalidPdoInstance()
Extract Doctrine\DBAL\DBALException::invalidWrapperClass()
Extract Doctrine\DBAL\DBALException::invalidDriverClass()
Extract Doctrine\DBAL\DBALException::invalidTableName()
Extract Doctrine\DBAL\DBALException::noColumnsSpecifiedForTable()
Extract Doctrine\DBAL\DBALException::typeExists()
Extract Doctrine\DBAL\DBALException::typeAlreadyRegistered()
Extract Doctrine\DBAL\DBALException::typeNotRegistered()
Extract Doctrine\DBAL\DBALException::unknownColumnType()
Extract Doctrine\DBAL\DBALException::typeNotFound()
Extract Doctrine\DBAL\DBALException::invalidPlatformType()
Extract Doctrine\DBAL\DBALException::driverRequired()
Extract Doctrine\DBAL\DBALException::unknownDriver()
Extract Doctrine\DBAL\DBALException::invalidColumnIndex()
Extract Doctrine\DBAL\Exception\ConnectionException::commitFailedRollbackOnly()
Extract Doctrine\DBAL\Exception\ConnectionException::noActiveTransaction()
Extract Doctrine\DBAL\Exception\ConnectionException::savepointsNotSupported()
Extract Doctrine\DBAL\Exception\ConnectionException::mayNotAlterNestedTransactionWithSavepointsInTransaction()
Extract Doctrine\DBAL\Exception\InvalidArgumentException::fromEmptyCriteria()
Extract Doctrine\DBAL\Type\ConversionException::conversionFailed()
Extract Doctrine\DBAL\Type\ConversionException::conversionFailedFormat()
Extract Doctrine\DBAL\Type\ConversionException::conversionFailedInvalidType()
Extract Doctrine\DBAL\Type\ConversionException::conversionFailedSerialization()
Extract Doctrine\DBAL\Query\QueryException::unknownAlias()
Extract Doctrine\DBAL\Query\QueryException::nonUniqueAlias()
Extract Doctrine\DBAL\Sharding\ShardingException::notImplemented()
Extract Doctrine\DBAL\Sharding\ShardingException::missingDefaultFederationName()
Extract Doctrine\DBAL\Sharding\ShardingException::missingDefaultDistributionKey()
Extract Doctrine\DBAL\Sharding\ShardingException::activeTransaction()
Extract Doctrine\DBAL\Sharding\ShardingException::noShardDistributionValue()
Extract Doctrine\DBAL\Sharding\ShardingException::missingDistributionType()
Extract Doctrine\DBAL\Cache\CacheException::noCacheKey()
Extract Doctrine\DBAL\Cache\CacheException::noResultDriverConfigured()
Extract Doctrine\DBAL\Schema\SchemaException::tableDoesNotExist()
Extract Doctrine\DBAL\Schema\SchemaException::indexNameInvalid()
Extract Doctrine\DBAL\Schema\SchemaException::indexDoesNotExist()
Extract Doctrine\DBAL\Schema\SchemaException::indexAlreadyExists()
Extract Doctrine\DBAL\Schema\SchemaException::columnDoesNotExist()
Extract Doctrine\DBAL\Schema\SchemaException::namespaceAlreadyExists()
Extract Doctrine\DBAL\Schema\SchemaException::tableAlreadyExists()
Extract Doctrine\DBAL\Schema\SchemaException::columnAlreadyExists()
Extract Doctrine\DBAL\Schema\SchemaException::sequenceAlreadyExists()
Extract Doctrine\DBAL\Schema\SchemaException::sequenceDoesNotExist()
Extract Doctrine\DBAL\Schema\SchemaException::uniqueConstraintDoesNotExist()
Extract Doctrine\DBAL\Schema\SchemaException::foreignKeyDoesNotExist()
Extract Doctrine\DBAL\Schema\SchemaException::namedForeignKeyRequired()
Extract Doctrine\DBAL\SQLParserUtilsException::missingParam()
Extract Doctrine\DBAL\SQLParserUtilsException::missingType()
Drop Doctrine\DBAL\DBALException::invalidPlatformSpecified()
Drop Doctrine\DBAL\DBALException::limitOffsetInvalid()
Drop Doctrine\DBAL\Schema\SchemaException::alterTableChangeNotSupported()
@morozov morozov merged commit e46c09b into develop Apr 29, 2019
@morozov
Copy link
Member

morozov commented Apr 29, 2019

Thank you @Majkl578 and @jwage!

@jwage jwage deleted the exceptions branch April 29, 2019 19:14
morozov added a commit that referenced this pull request May 6, 2019
Extract exception factory methods into specific exceptions
morozov added a commit that referenced this pull request May 23, 2019
Extract exception factory methods into specific exceptions
@morozov morozov self-assigned this May 23, 2019
morozov added a commit to morozov/dbal that referenced this pull request May 31, 2019
Extract exception factory methods into specific exceptions
morozov added a commit to morozov/dbal that referenced this pull request May 31, 2019
Extract exception factory methods into specific exceptions
morozov added a commit that referenced this pull request Jun 13, 2019
Extract exception factory methods into specific exceptions
morozov added a commit that referenced this pull request Jun 27, 2019
Extract exception factory methods into specific exceptions
morozov added a commit that referenced this pull request Jun 27, 2019
Extract exception factory methods into specific exceptions
morozov added a commit that referenced this pull request Jun 27, 2019
Extract exception factory methods into specific exceptions
morozov added a commit to morozov/dbal that referenced this pull request Aug 26, 2019
Extract exception factory methods into specific exceptions
morozov added a commit to morozov/dbal that referenced this pull request Aug 27, 2019
Extract exception factory methods into specific exceptions
morozov added a commit that referenced this pull request Nov 2, 2019
Extract exception factory methods into specific exceptions
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants