Silly & Chrischi
2008-04-10 23:14:02 UTC
Hello Guys,
i have problems catching exceptions thrown by the server.
Here ist a part of my idl:
module MysqlPackage {
interface Mysql {
exception MysqlException {
string reason;
};
};
};
I throw the exception by the server and her eis my code for it:
if(mysql_errno(mysqlDatabase) != 0){
throw MysqlPackage::Mysql::MysqlException("MySQL-Error");
}
But now, if i would like to catch the exception, i get a message by the
server, that sound like this:
"omniORB: WARNING - method ,xx' on: root<1> raised the exception:
IDL:MysqlPackage/Mysql/MysqlException:1.0"
I used the following statement to catch my exception:
catch (const MysqlPackage::Mysql::MysqlException::Exception& ex){
cout << "ERROR: " << ex._name() << endl;
}
Thank you for your help. I don't know what to do.
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20080410/feed4540/attachment.htm
i have problems catching exceptions thrown by the server.
Here ist a part of my idl:
module MysqlPackage {
interface Mysql {
exception MysqlException {
string reason;
};
};
};
I throw the exception by the server and her eis my code for it:
if(mysql_errno(mysqlDatabase) != 0){
throw MysqlPackage::Mysql::MysqlException("MySQL-Error");
}
But now, if i would like to catch the exception, i get a message by the
server, that sound like this:
"omniORB: WARNING - method ,xx' on: root<1> raised the exception:
IDL:MysqlPackage/Mysql/MysqlException:1.0"
I used the following statement to catch my exception:
catch (const MysqlPackage::Mysql::MysqlException::Exception& ex){
cout << "ERROR: " << ex._name() << endl;
}
Thank you for your help. I don't know what to do.
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20080410/feed4540/attachment.htm