diff options
author | David A. Madore <david+git@madore.org> | 2010-04-19 08:50:41 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2010-04-19 08:50:41 +0200 |
commit | c8808d230a8c4f938b6adb54eb250299a092d87c (patch) | |
tree | 5661595980ee7d2e33a718162a9e9a0c52ec63b8 /org/madore/damlengine/TodoStyleOrScript.java | |
parent | 4076342660f63f41bd5d25479c8e8588bbaaf3ae (diff) | |
download | damlengine-c8808d230a8c4f938b6adb54eb250299a092d87c.tar.gz damlengine-c8808d230a8c4f938b6adb54eb250299a092d87c.tar.bz2 damlengine-c8808d230a8c4f938b6adb54eb250299a092d87c.zip |
Use RuntimeException classes rather than Error to indicate errors.
Diffstat (limited to 'org/madore/damlengine/TodoStyleOrScript.java')
-rw-r--r-- | org/madore/damlengine/TodoStyleOrScript.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org/madore/damlengine/TodoStyleOrScript.java b/org/madore/damlengine/TodoStyleOrScript.java index 7b06955..4c04528 100644 --- a/org/madore/damlengine/TodoStyleOrScript.java +++ b/org/madore/damlengine/TodoStyleOrScript.java @@ -17,7 +17,7 @@ public class TodoStyleOrScript extends TodoItem { public void handle() { if ( ctx.headNode == null ) - throw new Error("head node is null when doing style or script"); + throw new IllegalArgumentException("head node is null when doing style or script"); Element node = ctx.doc.createElementNS(DamlEngine.XHTML_NS, (t==Type.SCRIPT)?"script":"style"); |