summaryrefslogtreecommitdiff
path: root/java/test/Ice/exceptions/ThrowerI.java
diff options
context:
space:
mode:
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;