summaryrefslogtreecommitdiff
path: root/java/test/Ice/exceptions/ThrowerI.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2014-10-23 16:28:09 -0230
committerMatthew Newhook <matthew@zeroc.com>2014-10-23 16:28:09 -0230
commitf6bb0396e7d8fd12ed50f72ab9fc99436d418576 (patch)
treeee6ef1cb32f2523839f210eb9ec3b924b97d5998 /java/test/Ice/exceptions/ThrowerI.java
parentAdd Object.equals, and minor fix to HashMap.equals (diff)
downloadice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.tar.bz2
ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.tar.xz
ice-f6bb0396e7d8fd12ed50f72ab9fc99436d418576.zip
More gradle changes.
Moved android stuff to its own package. Moved java tests to src/main/java/test subdirectory.
Diffstat (limited to 'java/test/Ice/exceptions/ThrowerI.java')
-rw-r--r--java/test/Ice/exceptions/ThrowerI.java201
1 files changed, 0 insertions, 201 deletions
diff --git a/java/test/Ice/exceptions/ThrowerI.java b/java/test/Ice/exceptions/ThrowerI.java
deleted file mode 100644
index 8859147bd36..00000000000
--- a/java/test/Ice/exceptions/ThrowerI.java
+++ /dev/null
@@ -1,201 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice is licensed to you under the terms described in the
-// ICE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-package test.Ice.exceptions;
-
-import test.Ice.exceptions.Test.A;
-import test.Ice.exceptions.Test.B;
-import test.Ice.exceptions.Test.C;
-import test.Ice.exceptions.Test.D;
-import test.Ice.exceptions.Test._ThrowerDisp;
-
-public final class ThrowerI extends _ThrowerDisp
-{
- public
- ThrowerI()
- {
- }
-
- @Override
- public void
- shutdown(Ice.Current current)
- {
- current.adapter.getCommunicator().shutdown();
- }
-
- @Override
- public boolean
- supportsUndeclaredExceptions(Ice.Current current)
- {
- return false;
- }
-
- @Override
- public boolean
- supportsAssertException(Ice.Current current)
- {
- return true;
- }
-
- @Override
- public void
- throwAasA(int a, Ice.Current current)
- throws A
- {
- A ex = new A();
- ex.aMem = a;
- throw ex;
- }
-
- @Override
- public void
- throwAorDasAorD(int a, Ice.Current current)
- throws A,
- D
- {
- if(a > 0)
- {
- A ex = new A();
- ex.aMem = a;
- throw ex;
- }
- else
- {
- D ex = new D();
- ex.dMem = a;
- throw ex;
- }
- }
-
- @Override
- public void
- throwBasA(int a, int b, Ice.Current current)
- throws A
- {
- throwBasB(a, b, current);
- }
-
- @Override
- public void
- throwBasB(int a, int b, Ice.Current current)
- throws B
- {
- B ex = new B();
- ex.aMem = a;
- ex.bMem = b;
- throw ex;
- }
-
- @Override
- public void
- throwCasA(int a, int b, int c, Ice.Current current)
- throws A
- {
- throwCasC(a, b, c, current);
- }
-
- @Override
- public void
- throwCasB(int a, int b, int c, Ice.Current current)
- throws B
- {
- throwCasC(a, b, c, current);
- }
-
- @Override
- public void
- throwCasC(int a, int b, int c, Ice.Current current)
- throws C
- {
- C ex = new C();
- ex.aMem = a;
- ex.bMem = b;
- ex.cMem = c;
- throw ex;
- }
-
- @Override
- public void
- throwUndeclaredA(int a, Ice.Current current)
- {
- // Not possible in Java.
- throw new Ice.UnknownUserException();
- }
-
- @Override
- public void
- throwUndeclaredB(int a, int b, Ice.Current current)
- {
- // Not possible in Java.
- throw new Ice.UnknownUserException();
- }
-
- @Override
- public void
- throwUndeclaredC(int a, int b, int c, Ice.Current current)
- {
- // Not possible in Java.
- throw new Ice.UnknownUserException();
- }
-
- @Override
- public void
- throwLocalException(Ice.Current current)
- {
- throw new Ice.TimeoutException();
- }
-
- @Override
- public void
- throwLocalExceptionIdempotent(Ice.Current current)
- {
- throw new Ice.TimeoutException();
- }
-
- @Override
- public void
- throwNonIceException(Ice.Current current)
- {
- throw new RuntimeException();
- }
-
- @Override
- public void
- throwAssertException(Ice.Current current)
- {
- throw new java.lang.AssertionError();
- }
-
- @Override
- public byte[]
- throwMemoryLimitException(byte[] seq, Ice.Current current)
- {
- return new byte[1024 * 20]; // 20KB is over the configured 10KB message size max.
- }
-
- @Override
- public void
- throwAfterResponse(Ice.Current current)
- {
- //
- // Only relevant for AMD.
- //
- }
-
- @Override
- public void
- throwAfterException(Ice.Current current)
- throws A
- {
- //
- // Only relevant for AMD.
- //
- throw new A();
- }
-}