1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #include <IceUtil/IceUtil.h>
6 #include <Ice/Ice.h>
7 #include <TestI.h>
8 
9 using namespace std;
10 using namespace Ice;
11 
12 void
requestFailedException(const Current &)13 TestI::requestFailedException(const Current&)
14 {
15 }
16 
17 void
unknownUserException(const Current &)18 TestI::unknownUserException(const Current&)
19 {
20 }
21 
22 void
unknownLocalException(const Current &)23 TestI::unknownLocalException(const Current&)
24 {
25 }
26 
27 void
unknownException(const Current &)28 TestI::unknownException(const Current&)
29 {
30 }
31 
32 void
userException(const Current &)33 TestI::userException(const Current&)
34 {
35 }
36 
37 void
localException(const Current &)38 TestI::localException(const Current&)
39 {
40 }
41 
42 void
stdException(const Current &)43 TestI::stdException(const Current&)
44 {
45 }
46 
47 void
cppException(const Current &)48 TestI::cppException(const Current&)
49 {
50 }
51 
52 void
unknownExceptionWithServantException(const Current &)53 TestI::unknownExceptionWithServantException(const Current&)
54 {
55     throw Ice::ObjectNotExistException(__FILE__, __LINE__);
56 }
57 
58 string
impossibleException(bool _cpp_throw,const Current &)59 TestI::impossibleException(bool _cpp_throw, const Current&)
60 {
61     if(_cpp_throw)
62     {
63         throw Test::TestImpossibleException();
64     }
65     //
66     // Return a value so we can be sure that the stream position
67     // is reset correctly if finished() throws.
68     //
69     return "Hello";
70 }
71 
72 string
intfUserException(bool _cpp_throw,const Current &)73 TestI::intfUserException(bool _cpp_throw, const Current&)
74 {
75     if(_cpp_throw)
76     {
77         throw Test::TestIntfUserException();
78     }
79     //
80     // Return a value so we can be sure that the stream position
81     // is reset correctly if finished() throws.
82     //
83     return "Hello";
84 }
85 
86 void
asyncResponse(const Current &)87 TestI::asyncResponse(const Current&)
88 {
89     //
90     // Only relevant for AMD.
91     //
92 }
93 
94 void
asyncException(const Current &)95 TestI::asyncException(const Current&)
96 {
97     //
98     // Only relevant for AMD.
99     //
100 }
101 
102 void
shutdown(const Current & current)103 TestI::shutdown(const Current& current)
104 {
105     current.adapter->deactivate();
106 }
107 
108 string
message() const109 CookieI::message() const
110 {
111     return "blahblah";
112 }
113