summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2008-12-08 15:32:37 +0000
committerGrant Gayed <ggayed>2008-12-08 15:32:37 +0000
commit932b9839c022f7194b635c908a86de385eea8304 (patch)
tree3e2f9f3c98afa2a6a14c97b8bbe845b20fd2be43 /bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java
parent4ad626333e8039e9453025a86195b54b426bced6 (diff)
downloadeclipse.platform.swt-932b9839c022f7194b635c908a86de385eea8304.tar.gz
eclipse.platform.swt-932b9839c022f7194b635c908a86de385eea8304.tar.xz
eclipse.platform.swt-932b9839c022f7194b635c908a86de385eea8304.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java
index 313dfedcff..a868c61f6e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/External.java
@@ -539,16 +539,16 @@ int callJava (int functionId, int /*long*/ args, int /*long*/ returnPtr) {
returnValue = function.function (arguments);
} catch (Exception e) {
/* exception during function invocation */
- returnValue = Mozilla.ERROR_ID + ':' + e.getLocalizedMessage ();
+ returnValue = WebBrowser.CreateErrorString (e.getLocalizedMessage ());
}
}
} catch (IllegalArgumentException e) {
/* invalid argument value type */
if (function.isEvaluate) {
/* notify the evaluate function so that a java exception can be thrown */
- function.function (new String[] {Mozilla.ERROR_ID + ':' + new SWTException (SWT.ERROR_INVALID_RETURNVALUE).getLocalizedMessage ()});
+ function.function (new String[] {WebBrowser.CreateErrorString (new SWTException (SWT.ERROR_INVALID_RETURNVALUE).getLocalizedMessage ())});
}
- returnValue = Mozilla.ERROR_ID + ':' + e.getLocalizedMessage ();
+ returnValue = WebBrowser.CreateErrorString (e.getLocalizedMessage ());
}
}
@@ -563,7 +563,7 @@ int callJava (int functionId, int /*long*/ args, int /*long*/ returnPtr) {
variant = convertToJS (returnValue, componentManager);
} catch (SWTException e) {
/* invalid return value type */
- variant = convertToJS (Mozilla.ERROR_ID + ':' + e.getLocalizedMessage (), componentManager);
+ variant = convertToJS (WebBrowser.CreateErrorString (e.getLocalizedMessage ()), componentManager);
}
componentManager.Release ();
C.memmove (returnPtr, new int /*long*/[] {variant.getAddress ()}, C.PTR_SIZEOF);