Class ThrowableUtil


  • public final class ThrowableUtil
    extends Object
    • Method Detail

      • unknownStackTrace

        public static <T extends Throwable> T unknownStackTrace​(T t,
                                                                Class<?> clazz,
                                                                String method)
        Type Parameters:
        T - the Throwable type
        Parameters:
        t - the throwable whose stacktrace we want to remove
        clazz - the caller class
        method - the caller method
        Returns:
        the input throwable with removed stacktrace