public static void throwException(final Throwable t) {
        if (UnsafeUtil.hasUnsafe()) {
            UnsafeUtil.throwException(t);
        } else {
            ThrowUtil.throwException0(t);
        }
    }
Raises an exception bypassing compiler checks for checked exceptions.
jraft-core/src/main/java/com/alipay/sofa/jraft/util/internal/ThrowUtil.java