gatelib
2.1
|
G_EXC_DEFINE_MSG ( MethodFailException , g::Exception , "Method failure reason" )
void MyCls::method ( const char* a )
{
G_EXC_SET_CONTEXT("void MyCls::method ( const char* a )");//You MUST specify the context inside the function.
G_EXC_RAISE ( MethodFailException );
}
G_EXC_DEFINE ( MethodFailException , g::Exception )
void MyCls::method ( const char* a )
{
G_EXC_SET_CONTEXT("void MyCls::method ( const char* a )");//You MUST specify the context inside the function.
G_EXC_RAISE_MSG ( MethodFailException , "Method failure reason" );
}