/*1* Copyright 2010-2011 PathScale, Inc. All rights reserved.2*3* Redistribution and use in source and binary forms, with or without4* modification, are permitted provided that the following conditions are met:5*6* 1. Redistributions of source code must retain the above copyright notice,7* this list of conditions and the following disclaimer.8*9* 2. Redistributions in binary form must reproduce the above copyright notice,10* this list of conditions and the following disclaimer in the documentation11* and/or other materials provided with the distribution.12*13* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS14* IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,15* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR16* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR17* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,18* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,19* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;20* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,21* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR22* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF23* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.24*/2526/**27* stdexcept.cc - provides stub implementations of the exceptions required by the runtime.28*/29#include "stdexcept.h"3031namespace std {3233exception::exception() _LIBCXXRT_NOEXCEPT {}34exception::~exception() {}35exception::exception(const exception&) _LIBCXXRT_NOEXCEPT {}36exception& exception::operator=(const exception&) _LIBCXXRT_NOEXCEPT37{38return *this;39}40const char* exception::what() const _LIBCXXRT_NOEXCEPT41{42return "std::exception";43}4445bad_alloc::bad_alloc() _LIBCXXRT_NOEXCEPT {}46bad_alloc::~bad_alloc() {}47bad_alloc::bad_alloc(const bad_alloc&) _LIBCXXRT_NOEXCEPT {}48bad_alloc& bad_alloc::operator=(const bad_alloc&) _LIBCXXRT_NOEXCEPT49{50return *this;51}52const char* bad_alloc::what() const _LIBCXXRT_NOEXCEPT53{54return "cxxrt::bad_alloc";55}56575859bad_cast::bad_cast() _LIBCXXRT_NOEXCEPT {}60bad_cast::~bad_cast() {}61bad_cast::bad_cast(const bad_cast&) _LIBCXXRT_NOEXCEPT {}62bad_cast& bad_cast::operator=(const bad_cast&) _LIBCXXRT_NOEXCEPT63{64return *this;65}66const char* bad_cast::what() const _LIBCXXRT_NOEXCEPT67{68return "std::bad_cast";69}7071bad_typeid::bad_typeid() _LIBCXXRT_NOEXCEPT {}72bad_typeid::~bad_typeid() {}73bad_typeid::bad_typeid(const bad_typeid &__rhs) _LIBCXXRT_NOEXCEPT {}74bad_typeid& bad_typeid::operator=(const bad_typeid &__rhs) _LIBCXXRT_NOEXCEPT75{76return *this;77}7879const char* bad_typeid::what() const _LIBCXXRT_NOEXCEPT80{81return "std::bad_typeid";82}8384bad_array_new_length::bad_array_new_length() _LIBCXXRT_NOEXCEPT {}85bad_array_new_length::~bad_array_new_length() {}86bad_array_new_length::bad_array_new_length(const bad_array_new_length&) _LIBCXXRT_NOEXCEPT {}87bad_array_new_length& bad_array_new_length::operator=(const bad_array_new_length&) _LIBCXXRT_NOEXCEPT88{89return *this;90}9192const char* bad_array_new_length::what() const _LIBCXXRT_NOEXCEPT93{94return "std::bad_array_new_length";95}9697} // namespace std9899100101