C++/Tcl A C++ library for interoperability between C++ and Tcl |
tcl_error
type:namespace Tcl
{
class tcl_error : public
std::runtime_error
{
// ...
};
}
int main()
{
try
{
interpreter i;
//
...
}
catch (tcl_error const &e)
{
// some
Tcl error
}
catch (exception const &e)
{
// some
other error
}
}
std::exception
family. For all other C++ exceptions, the "Unknown error."
message is returned.