Skip to content

Introduce specific exceptions for field and method autowiring failures #969

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

Closed

Conversation

wilkinsona
Copy link
Member

Previously, a BeanCreationException was used when autowiring of a field or method failed. Details of the field or method were included in the exception message. This meant that anyone who wanted to access
information about the field or method had to resort to the error-prone approach of parsing the exception’s message.

This pull request introduces two new exceptions, FieldAutowiringException and MethodAutowiringException, that provide access to the Field or Method for which autowiring has failed.

Previously, a BeanCreationException was used when autowiring of a
field or method failed. Details of the field or method were included
in the exception message. This meant that anyone who wanted to access
information about the field or method had to resort to the error-prone
approach of parsing the exception’s message.

This commit introduces two new exceptions, FieldAutowiringException
and MethodAutowiringException, that provide access to the Field or
Method for which autowiring has failed.
@snicoll
Copy link
Member

snicoll commented Mar 4, 2016

@jhoeller I think that PR is outdated now, right?

@HymanChaos
Copy link

Maybe

发自 网易邮箱大师
在2016年03月05日 05:45,Stéphane Nicoll 写道:

@jhoeller I think that PR is outdated now, right?


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants