<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD><TITLE>Nachricht</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3268" name=GENERATOR>
<STYLE>@font-face {
        font-family: Cambria Math;
}
@font-face {
        font-family: Calibri;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 70.85pt 70.85pt 2.0cm 70.85pt; }
P.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.E-MailFormatvorlage17 {
        COLOR: windowtext; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-compose
}
.MsoChpDefault {
        mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=DE vLink=purple link=blue>
<DIV><FONT face=Arial color=#0000ff><SPAN class=062365207-11042008>... could
yout try "throw new
MysqlPackage::Mysql::MysqlException(...);"</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff><SPAN class=062365207-11042008>... just try
to add this "new".</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff><SPAN class=062365207-11042008>Kind
R</SPAN></FONT><FONT face=Arial color=#0000ff><SPAN
class=062365207-11042008>egards, Evgeni</SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left><FONT face=Tahoma
size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B>
omniorb-list-bounces@omniorb-support.com
[mailto:omniorb-list-bounces@omniorb-support.com] <B>Im Auftrag von </B>Silly
& Chrischi<BR><B>Gesendet:</B> Donnerstag, 10. April 2008
19:14<BR><B>An:</B> omniorb-list@omniorb-support.com<BR><B>Betreff:</B>
[omniORB] Problems catching exceptions in clients<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal>Hello Guys,<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>i have problems catching exceptions thrown by the
server.<o:p></o:p></P>
<P class=MsoNormal>Here ist a part of my idl:<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>module MysqlPackage {<o:p></o:p></P>
<P
class=MsoNormal>
interface Mysql {<o:p></o:p></P>
<P
class=MsoNormal>
exception MysqlException {<o:p></o:p></P>
<P
class=MsoNormal>
string reason;<o:p></o:p></P>
<P
class=MsoNormal>
};<o:p></o:p></P>
<P class=MsoNormal style="TEXT-INDENT: 35.4pt">};<o:p></o:p></P>
<P class=MsoNormal>};<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>I throw the exception by the server and her eis my code for
it:<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>if(mysql_errno(mysqlDatabase) != 0){<o:p></o:p></P>
<P class=MsoNormal style="TEXT-INDENT: 35.4pt">throw
MysqlPackage::Mysql::MysqlException("MySQL-Error");<o:p></o:p></P>
<P class=MsoNormal>}<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>But now, if i would like to catch the exception, i get a
message by the server, that sound like this:<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>„omniORB: WARNING – method ‚xx‘ on: root<1> raised
the exception: IDL:MysqlPackage/Mysql/MysqlException:1.0“<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>I used the following statement to catch my
exception:<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>catch (const
MysqlPackage::Mysql::MysqlException::Exception& ex){<o:p></o:p></P>
<P class=MsoNormal style="TEXT-INDENT: 35.4pt">cout << "ERROR: "
<< ex._name() << endl;<o:p></o:p></P>
<P class=MsoNormal>}<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Thank you for your help. I don’t know what to
do.<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Christian<o:p></o:p></P></DIV></BLOCKQUOTE></BODY></HTML>