stdexcept.cc revision 227825
158314Sache/** 221308Sache * stdexcept.cc - provides stub implementations of the exceptions required by the runtime. 321308Sache */ 4157188Sache#include "stdexcept.h" 521308Sache 621308Sachenamespace std { 721308Sache 821308Sacheexception::exception() throw() {} 921308Sacheexception::~exception() {} 1021308Sacheexception::exception(const exception&) throw() {} 1158314Sacheexception& exception::operator=(const exception&) throw() 1221308Sache{ 1321308Sache return *this; 1421308Sache} 1521308Sacheconst char* exception::what() const throw() 1621308Sache{ 1721308Sache return "std::exception"; 1821308Sache} 1921308Sache 2021308Sachebad_alloc::bad_alloc() throw() {} 2121308Sachebad_alloc::~bad_alloc() {} 2258314Sachebad_alloc::bad_alloc(const bad_alloc&) throw() {} 2321308Sachebad_alloc& bad_alloc::operator=(const bad_alloc&) throw() 2421308Sache{ 2521308Sache return *this; 2621308Sache} 2721308Sacheconst char* bad_alloc::what() const throw() 2821308Sache{ 2921308Sache return "cxxrt::bad_alloc"; 3021308Sache} 3121308Sache 3221308Sache 3321308Sache 3421308Sachebad_cast::bad_cast() throw() {} 3526497Sachebad_cast::~bad_cast() {} 3626497Sachebad_cast::bad_cast(const bad_cast&) throw() {} 3721308Sachebad_cast& bad_cast::operator=(const bad_cast&) throw() 3821308Sache{ 3921308Sache return *this; 4021308Sache} 4121308Sacheconst char* bad_cast::what() const throw() 4221308Sache{ 4326497Sache return "std::bad_cast"; 4421308Sache} 4521308Sache 4621308Sachebad_typeid::bad_typeid() throw() {} 47119614Sachebad_typeid::~bad_typeid() {} 4821308Sachebad_typeid::bad_typeid(const bad_typeid &__rhs) throw() {} 4921308Sachebad_typeid& bad_typeid::operator=(const bad_typeid &__rhs) throw() 5021308Sache{ 5121308Sache return *this; 5221308Sache} 5321308Sache 5421308Sacheconst char* bad_typeid::what() const throw() 5521308Sache{ 5658314Sache return "std::bad_typeid"; 5758314Sache} 5858314Sache 5921308Sache} // namespace std 6021308Sache 6121308Sache