1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
namespace std
{
%TypeHeaderCode
#include <stdexcept>
%End
class logic_error : std::exception
{
public:
explicit logic_error(const std::string& __arg);
virtual ~logic_error() throw();
virtual const char* what() const throw();
};
class runtime_error : std::exception
{
public:
explicit runtime_error(const std::string& __arg);
virtual ~runtime_error() throw();
virtual const char* what() const throw();
};
class invalid_argument : std::logic_error
{
public:
explicit invalid_argument(const std::string& __arg);
virtual ~invalid_argument() throw();
%MethodCode
return;
%End
};
};
|