From 4145cca4956fbcee2a976bd01829ed785e603cc0 Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 27 Dec 2004 05:44:03 +0000 Subject: [PATCH] moved JSRuntimeExn into its own file to satisfy eclipse compiler darcs-hash:20041227054403-5007d-59cc243c9ef3fcf2bd9705f88e0d2504351d6be9.gz --- src/org/ibex/js/JSExn.java | 10 ---------- src/org/ibex/js/JSRuntimeExn.java | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 src/org/ibex/js/JSRuntimeExn.java diff --git a/src/org/ibex/js/JSExn.java b/src/org/ibex/js/JSExn.java index ff4abc5..1fda3c7 100644 --- a/src/org/ibex/js/JSExn.java +++ b/src/org/ibex/js/JSExn.java @@ -51,13 +51,3 @@ public class JSExn extends Exception { } } } - -/** should only be used for failed coercions */ -class JSRuntimeExn extends RuntimeException { - private Object js = null; - public JSRuntimeExn(Object js) { this.js = js; } - public String toString() { return "JSRuntimeExn: " + js; } - public String getMessage() { return toString(); } - public Object getObject() { return js; } -} - diff --git a/src/org/ibex/js/JSRuntimeExn.java b/src/org/ibex/js/JSRuntimeExn.java new file mode 100644 index 0000000..5ff085c --- /dev/null +++ b/src/org/ibex/js/JSRuntimeExn.java @@ -0,0 +1,14 @@ +// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL] +package org.ibex.js; + +import org.ibex.util.*; +import java.io.*; + +/** should only be used for failed coercions */ +class JSRuntimeExn extends RuntimeException { + private Object js = null; + public JSRuntimeExn(Object js) { this.js = js; } + public String toString() { return "JSRuntimeExn: " + js; } + public String getMessage() { return toString(); } + public Object getObject() { return js; } +} -- 1.7.10.4