It is supposed to create a new instance of the exception type, for example:
throw myOwnException();
:
throw Interfface::myOwnException();
, throw (. "" ) ++ 11. , , , , . , , , . .
.
EDIT:
, :
exception myOwnException {
string reason;
};
. , :
throw Interfface::myOwnException("Wrong polarity!");
, , ( ). , :
try
{
server->ffunction(0);
}
catch(const Interfface::myOwnException &ex)
{
std::cout << ex.reason;
}
++ ( , ).
( CORBA), , .