summaryrefslogtreecommitdiff
path: root/java/test/Ice/exceptions/ThrowerI.java
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-04-18 14:45:02 +0000
committerMarc Laukien <marc@zeroc.com>2004-04-18 14:45:02 +0000
commitca2755655616eb51b59ab7989ee24e525927ba92 (patch)
treee792090344a4735f0604110a71f5f3dfab3c19bf /java/test/Ice/exceptions/ThrowerI.java
parentAdded back createObject and destroyObject (diff)
downloadice-ca2755655616eb51b59ab7989ee24e525927ba92.tar.bz2
ice-ca2755655616eb51b59ab7989ee24e525927ba92.tar.xz
ice-ca2755655616eb51b59ab7989ee24e525927ba92.zip
assertions are now correctly caught
Diffstat (limited to 'java/test/Ice/exceptions/ThrowerI.java')
-rw-r--r--java/test/Ice/exceptions/ThrowerI.java34
1 files changed, 23 insertions, 11 deletions
diff --git a/java/test/Ice/exceptions/ThrowerI.java b/java/test/Ice/exceptions/ThrowerI.java
index 3d653906ebf..227df0d45ce 100644
--- a/java/test/Ice/exceptions/ThrowerI.java
+++ b/java/test/Ice/exceptions/ThrowerI.java
@@ -32,6 +32,12 @@ public final class ThrowerI extends _ThrowerDisp
return false;
}
+ public boolean
+ supportsAssertException(Ice.Current current)
+ {
+ return true;
+ }
+
public void
throwAasA(int a, Ice.Current current)
throws A
@@ -103,36 +109,42 @@ public final class ThrowerI extends _ThrowerDisp
}
public void
- throwLocalException(Ice.Current current)
+ throwUndeclaredA(int a, Ice.Current current)
{
- throw new Ice.TimeoutException();
+ // Not possible in Java.
+ throw new Ice.UnknownUserException();
}
public void
- throwNonIceException(Ice.Current current)
+ throwUndeclaredB(int a, int b, Ice.Current current)
{
- throw new RuntimeException();
+ // Not possible in Java.
+ throw new Ice.UnknownUserException();
}
public void
- throwUndeclaredA(int a, Ice.Current current)
+ throwUndeclaredC(int a, int b, int c, Ice.Current current)
{
// Not possible in Java.
throw new Ice.UnknownUserException();
}
public void
- throwUndeclaredB(int a, int b, Ice.Current current)
+ throwLocalException(Ice.Current current)
{
- // Not possible in Java.
- throw new Ice.UnknownUserException();
+ throw new Ice.TimeoutException();
}
public void
- throwUndeclaredC(int a, int b, int c, Ice.Current current)
+ throwNonIceException(Ice.Current current)
{
- // Not possible in Java.
- throw new Ice.UnknownUserException();
+ throw new RuntimeException();
+ }
+
+ public void
+ throwAssertException(Ice.Current current)
+ {
+ throw new java.lang.AssertionError();
}
private Ice.ObjectAdapter _adapter;