aboutsummaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2023-03-10 08:08:16 +0000
committerDominik Stadler <centic@apache.org>2023-03-10 08:08:16 +0000
commit5b84aae94cd8f95ad2e7ab7c940dbba1ccb440bb (patch)
tree6f8a482846bffc479e61b9e13d4f619e6b706ddb /poi
parent30ff8020a313ade7339ae9b890af45785c356ff0 (diff)
downloadpoi-5b84aae94cd8f95ad2e7ab7c940dbba1ccb440bb.tar.gz
poi-5b84aae94cd8f95ad2e7ab7c940dbba1ccb440bb.zip
Update/fix JavaDoc and add "throws"
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908240 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/main/java/org/apache/poi/util/ExceptionUtil.java5
1 files changed, 4 insertions, 1 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 db44ce9587..5e41052ede 100644
--- a/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java
+++ b/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java
@@ -49,8 +49,11 @@ public class ExceptionUtil {
* </p>
*
* @param throwable to check
+ * @throws Error the input throwable if it is an <code>Error</code>.
+ * @throws RuntimeException the input throwable if it is an <code>RuntimeException</code>
+ * Otherwise wraps the throwable in a RuntimeException.
*/
- public static void rethrow(Throwable throwable) {
+ public static void rethrow(Throwable throwable) throws Error, RuntimeException {
if (throwable instanceof Error) {
throw (Error) throwable;
}