stdexcept.cc revision 227825
1/** 2 * stdexcept.cc - provides stub implementations of the exceptions required by the runtime. 3 */ 4#include "stdexcept.h" 5 6namespace std { 7 8exception::exception() throw() {} 9exception::~exception() {} 10exception::exception(const exception&) throw() {} 11exception& exception::operator=(const exception&) throw() 12{ 13 return *this; 14} 15const char* exception::what() const throw() 16{ 17 return "std::exception"; 18} 19 20bad_alloc::bad_alloc() throw() {} 21bad_alloc::~bad_alloc() {} 22bad_alloc::bad_alloc(const bad_alloc&) throw() {} 23bad_alloc& bad_alloc::operator=(const bad_alloc&) throw() 24{ 25 return *this; 26} 27const char* bad_alloc::what() const throw() 28{ 29 return "cxxrt::bad_alloc"; 30} 31 32 33 34bad_cast::bad_cast() throw() {} 35bad_cast::~bad_cast() {} 36bad_cast::bad_cast(const bad_cast&) throw() {} 37bad_cast& bad_cast::operator=(const bad_cast&) throw() 38{ 39 return *this; 40} 41const char* bad_cast::what() const throw() 42{ 43 return "std::bad_cast"; 44} 45 46bad_typeid::bad_typeid() throw() {} 47bad_typeid::~bad_typeid() {} 48bad_typeid::bad_typeid(const bad_typeid &__rhs) throw() {} 49bad_typeid& bad_typeid::operator=(const bad_typeid &__rhs) throw() 50{ 51 return *this; 52} 53 54const char* bad_typeid::what() const throw() 55{ 56 return "std::bad_typeid"; 57} 58 59} // namespace std 60 61