ICE 3.4.2
[php5-ice-freebsdport.git] / cs / test / Ice / exceptions / TestAMD.ice
blob42c7a5b1ab8f2d4ebb4bff290a7eae1f4ccb36ab
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 #ifndef TEST_ICE
11 #define TEST_ICE
13 module Test
16 interface Empty
20 interface Thrower;
22 exception A
24     int aMem;
27 exception B extends A
29     int bMem;
32 exception C extends B
34     int cMem;
37 exception D
39     int dMem;
42 ["ami", "amd"] interface Thrower
44     void shutdown();
45     bool supportsUndeclaredExceptions();
46     bool supportsAssertException();
48     void throwAasA(int a) throws A;
49     void throwAorDasAorD(int a) throws A, D;
50     void throwBasA(int a, int b) throws A;
51     void throwCasA(int a, int b, int c) throws A;
52     void throwBasB(int a, int b) throws B;
53     void throwCasB(int a, int b, int c) throws B;
54     void throwCasC(int a, int b, int c) throws C;
55     void throwUndeclaredA(int a);
56     void throwUndeclaredB(int a, int b);
57     void throwUndeclaredC(int a, int b, int c);
58     void throwLocalException();
59     void throwNonIceException();
60     void throwAssertException();
62     void throwAfterResponse();
63     void throwAfterException() throws A;
66 ["ami", "amd"] interface WrongOperation
68     void noSuchOperation();
73 #endif