mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2145: [GH-514] Improved exception when a type hint class can not be found #2699
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Nov 14, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @beberlei:
This issue is created automatically through a Github pull request on behalf of arnaud-lb:
Url: https://github.com/doctrine/doctrine2/pull/514
Message:
This improves the exception message when a type hint class was not found during the generation of a proxy.
Example:
When generating a proxy for this class
Foo, if the type hint classInvalidClasscannot be found, aReflectionExceptionexception is thrown with the following message:Class InvalidClass does not exist. There is no hint on the real cause of the error (which class, method, ...).This PR wraps this exception with a message making the cause of the exception more obvious.
@doctrinebot commented on GitHub (Nov 14, 2012):
Comment created by @beberlei:
A related Github Pull-Request [GH-514] was closed
https://github.com/doctrine/doctrine2/pull/514
@doctrinebot commented on GitHub (Nov 25, 2012):
Comment created by @beberlei:
Duplicate of DDC-2064
@doctrinebot commented on GitHub (Nov 25, 2012):
Issue was closed with resolution "Duplicate"
@doctrinebot commented on GitHub (Feb 8, 2014):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-514] was closed:
https://github.com/doctrine/dbal/pull/514