Class ExceptionDepthComparator

    • Constructor Detail

      • ExceptionDepthComparator

        public ExceptionDepthComparator​(Throwable exception)
        Create a new ExceptionDepthComparator for the given exception.
        Parameters:
        exception - the target exception to compare to when sorting by depth
      • ExceptionDepthComparator

        public ExceptionDepthComparator​(Class<? extends Throwable> exceptionType)
        Create a new ExceptionDepthComparator for the given exception type.
        Parameters:
        exceptionType - the target exception type to compare to when sorting by depth