[DDC-2145] [GH-514] Improved exception when a type hint class can not be found Created: 14/Nov/12 Updated: 08/Feb/14 Resolved: 25/Nov/12
|Project:||Doctrine 2 - ORM|
|Reporter:||Benjamin Eberlei||Assignee:||Benjamin Eberlei|
This issue is created automatically through a Github pull request on behalf of arnaud-lb:
This improves the exception message when a type hint class was not found during the generation of a proxy.
When generating a proxy for this class `Foo`, if the type hint class `InvalidClass` cannot be found, a `ReflectionException` exception 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.
|Comment by Benjamin Eberlei [ 14/Nov/12 ]|
A related Github Pull-Request [GH-514] was closed
|Comment by Benjamin Eberlei [ 25/Nov/12 ]|
|Comment by Doctrine Bot [ 08/Feb/14 ]|
A related Github Pull-Request [GH-514] was closed: