-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the dependency path exception message (#11405)
This improves the readability of message for long paths, large class names or classes with many parameters, as each class from the path is immediately visible. I changed the tests to use longer class names, which is more realistic. The type names are also in fully-qualified shortened form, which makes them clickable in IDEs. As a comparison this message ```java Message: No bean of type [io.micronaut.inject.failures.NestedDependencyFailureSpec$MyClassD] exists. | Path Taken: new MyClassB() --> MyClassB.propA --> new MyClassA([MyClassC propC]) --> new MyClassC([MyClassD propD]) ``` will change to ```java Message: No bean of type [io.micronaut.inject.failures.NestedDependencyFailureSpec$MyClassD] exists. Path Taken: new i.m.i.f.N$MyClassB() \---> i.m.i.f.N$MyClassB#propA \---> new i.m.i.f.N$MyClassA([MyClassC propC]) \---> new i.m.i.f.N$MyClassC([MyClassD propD]) ``` Part of the change is similar to visualization change for circular dependencies: #11299.
- Loading branch information
1 parent
30d02db
commit 39cea72
Showing
38 changed files
with
408 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.