git.samba.org
/
tridge
/
openchange.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
server: intialize aux_header buffer to null if the data is missing.
[tridge/openchange.git]
/
branches
/
plugfest
/
libmapi++
/
tests
/
exception_test.cpp
1
#include <iostream>
2
3
#include <libmapi++/libmapi++.h>
4
5
static void dotest() throw(libmapipp::mapi_exception)
6
{
7
throw libmapipp::mapi_exception(MAPI_E_SUCCESS, "mapi_exception test");
8
}
9
10
int main()
11
{
12
try {
13
dotest();
14
}
15
catch (libmapipp::mapi_exception e) {
16
std::cout << e.what() << std::endl;
17
}
18
19
return 0;
20
}
21