stdexcept.cc revision 227825
1227825Stheraven/** 2227825Stheraven * stdexcept.cc - provides stub implementations of the exceptions required by the runtime. 3227825Stheraven */ 4227825Stheraven#include "stdexcept.h" 5227825Stheraven 6227825Stheravennamespace std { 7227825Stheraven 8227825Stheravenexception::exception() throw() {} 9227825Stheravenexception::~exception() {} 10227825Stheravenexception::exception(const exception&) throw() {} 11227825Stheravenexception& exception::operator=(const exception&) throw() 12227825Stheraven{ 13227825Stheraven return *this; 14227825Stheraven} 15227825Stheravenconst char* exception::what() const throw() 16227825Stheraven{ 17227825Stheraven return "std::exception"; 18227825Stheraven} 19227825Stheraven 20227825Stheravenbad_alloc::bad_alloc() throw() {} 21227825Stheravenbad_alloc::~bad_alloc() {} 22227825Stheravenbad_alloc::bad_alloc(const bad_alloc&) throw() {} 23227825Stheravenbad_alloc& bad_alloc::operator=(const bad_alloc&) throw() 24227825Stheraven{ 25227825Stheraven return *this; 26227825Stheraven} 27227825Stheravenconst char* bad_alloc::what() const throw() 28227825Stheraven{ 29227825Stheraven return "cxxrt::bad_alloc"; 30227825Stheraven} 31227825Stheraven 32227825Stheraven 33227825Stheraven 34227825Stheravenbad_cast::bad_cast() throw() {} 35227825Stheravenbad_cast::~bad_cast() {} 36227825Stheravenbad_cast::bad_cast(const bad_cast&) throw() {} 37227825Stheravenbad_cast& bad_cast::operator=(const bad_cast&) throw() 38227825Stheraven{ 39227825Stheraven return *this; 40227825Stheraven} 41227825Stheravenconst char* bad_cast::what() const throw() 42227825Stheraven{ 43227825Stheraven return "std::bad_cast"; 44227825Stheraven} 45227825Stheraven 46227825Stheravenbad_typeid::bad_typeid() throw() {} 47227825Stheravenbad_typeid::~bad_typeid() {} 48227825Stheravenbad_typeid::bad_typeid(const bad_typeid &__rhs) throw() {} 49227825Stheravenbad_typeid& bad_typeid::operator=(const bad_typeid &__rhs) throw() 50227825Stheraven{ 51227825Stheraven return *this; 52227825Stheraven} 53227825Stheraven 54227825Stheravenconst char* bad_typeid::what() const throw() 55227825Stheraven{ 56227825Stheraven return "std::bad_typeid"; 57227825Stheraven} 58227825Stheraven 59227825Stheraven} // namespace std 60227825Stheraven 61