summaryrefslogtreecommitdiff
path: root/ACE/TAO/tests/Bug_3701_Regression/client.cpp
blob: bcaafc79f4a6a075c5bb5250e59dfe2b689a5618 (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
// $Id$

#include "tao/SystemException.h"

ACE_RCSID(Hello, client, "$Id$")

int
ACE_TMAIN(int, ACE_TCHAR *[])
{
  int result = 0;
  try
    {
      throw CORBA::BAD_PARAM ();
    }
  catch (const CORBA::BAD_PARAM&)
    {
      // Correct exception
    }
  catch (const CORBA::Exception& ex)
    {
      ex._tao_print_exception ("Incorrect exception caught:");
      ++result;
    }

  return result;
}