aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2023-02-19 18:54:56 +0000
committerPJ Fanning <fanningpj@apache.org>2023-02-19 18:54:56 +0000
commit15bdee445697dab8f7f5d8a0b055b1ff7385ad57 (patch)
treec93c0edf9d89fcdb9ec8a45d632f46d8bc70bc88
parentc67d140d77fa25c04f9f22028da5e41b1aa268c9 (diff)
downloadpoi-15bdee445697dab8f7f5d8a0b055b1ff7385ad57.tar.gz
poi-15bdee445697dab8f7f5d8a0b055b1ff7385ad57.zip
build issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907761 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi/src/main/java/org/apache/poi/util/ExceptionUtil.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java b/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java
index 01ec1aced2..db44ce9587 100644
--- a/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java
+++ b/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java
@@ -43,10 +43,12 @@ public class ExceptionUtil {
/**
* Designed to be used in conjunction with {@link #isFatal(Throwable)}.
* This method should be used with care.
+ * <p>
+ * The input throwable is thrown if it is an <code>Error</code> or <code>RuntimeException</code>.
+ * Otherwise, the method wraps the throwable in a RuntimeException and rethrows that.
+ * </p>
*
* @param throwable to check
- * @throws Throwable the input throwable if it is an <code>Error</code> or <code>RuntimeException</code>.
- * Otherwise wraps the throwable in a RuntimeException.
*/
public static void rethrow(Throwable throwable) {
if (throwable instanceof Error) {