java.lang.Object | |
↳ | org.springframework.core.ExceptionDepthComparator |
Comparator capable of sorting exceptions based on their depth from the thrown exception type.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new ExceptionDepthComparator for the given exception.
| |||||||||||
Create a new ExceptionDepthComparator for the given exception type.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Obtain the closest match from the given exception types for the given target exception.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.util.Comparator
|
Create a new ExceptionDepthComparator for the given exception.
exception | the target exception to compare to when sorting by depth |
---|
Create a new ExceptionDepthComparator for the given exception type.
exceptionType | the target exception type to compare to when sorting by depth |
---|
Obtain the closest match from the given exception types for the given target exception.
exceptionTypes | the collection of exception types |
---|---|
targetException | the target exception to find a match for |