Skip to content

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