aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/apps
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2004-04-04 11:12:29 +0000
committerJeremias Maerki <jeremias@apache.org>2004-04-04 11:12:29 +0000
commit59c469143be533f696570b9b1f39a0ce7ea5ec38 (patch)
tree96a970a9ecea044662a9414948aa057f4d5f910c /src/java/org/apache/fop/apps
parent5d01341611123b217c6440d8d7e5578e67feda68 (diff)
downloadxmlgraphics-fop-59c469143be533f696570b9b1f39a0ce7ea5ec38.tar.gz
xmlgraphics-fop-59c469143be533f696570b9b1f39a0ce7ea5ec38.zip
Ordinary Java code should never throw Error instances, use RuntimeException instead. That said, RuntimeException is equally suboptimal here. We should probably create an exception class like SAXException for the handler methods.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197490 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/apps')
-rw-r--r--src/java/org/apache/fop/apps/InputHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/apps/InputHandler.java b/src/java/org/apache/fop/apps/InputHandler.java
index acb6c50e9..383e7cd8d 100644
--- a/src/java/org/apache/fop/apps/InputHandler.java
+++ b/src/java/org/apache/fop/apps/InputHandler.java
@@ -83,7 +83,7 @@ public abstract class InputHandler {
try {
return new InputSource(new URL("file", null, path).toString());
} catch (java.net.MalformedURLException e) {
- throw new Error("unexpected MalformedURLException");
+ throw new RuntimeException("unexpected MalformedURLException");
}
}