J
JKop
Let's say you've a very simple function, that, if it fails, should throw an
exception. The thing is though, it's not important enough to go and actually
define an "exception class" for, so... is there any general exception class
defined in the Standard Library that I could use in such circumstances,
maybe something like:
namespace std
{
class exception {};
}
void MyFunc()
{
//Something bad happens
throw std::exception();
}
-JKop
exception. The thing is though, it's not important enough to go and actually
define an "exception class" for, so... is there any general exception class
defined in the Standard Library that I could use in such circumstances,
maybe something like:
namespace std
{
class exception {};
}
void MyFunc()
{
//Something bad happens
throw std::exception();
}
-JKop