repo.or.cz
/
ACE_TAO.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git]
/
TAO
/
tests
/
Bug_3701_Regression
/
client.cpp
blob
3672ccaee4473d3ae647c692ae652a55d2dc7725
1
#include
"tao/SystemException.h"
2
3
int
4
ACE_TMAIN
(
int
,
ACE_TCHAR
*[])
5
{
6
int
result
=
0
;
7
try
8
{
9
throw
CORBA
::
BAD_PARAM
();
10
}
11
catch
(
const
CORBA
::
BAD_PARAM
&)
12
{
13
// Correct exception
14
}
15
catch
(
const
CORBA
::
Exception
&
ex
)
16
{
17
ex
.
_tao_print_exception
(
"Incorrect exception caught:"
);
18
++
result
;
19
}
20
21
return
result
;
22
}