summaryrefslogtreecommitdiff
path: root/tests/AMH_Exceptions/Test.idl
blob: 6a9ae77044b64b1ec3f8501f14beaae16a499c61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// $Id$
//

/// A simple module to avoid namespace pollution
module Test
{

  exception InvalidTimestamp {};
  exception ServerOverload {};
  
  /// Use a timestamp to measure the roundtrip delay
  typedef unsigned long long Timestamp;

  valuetype Red_Herring
  {
    Timestamp test_method (in Timestamp send_time)
      raises (InvalidTimestamp, ServerOverload);
  };

  /// Measure roundtrip Delay
  interface Roundtrip
  {
    Timestamp test_method (in Timestamp send_time)
      raises (InvalidTimestamp, ServerOverload);

    oneway void shutdown ();
  };

};