14684ddb6SLionel Sambuc /*
24684ddb6SLionel Sambuc * Copyright 2010-2011 PathScale, Inc. All rights reserved.
34684ddb6SLionel Sambuc *
44684ddb6SLionel Sambuc * Redistribution and use in source and binary forms, with or without
54684ddb6SLionel Sambuc * modification, are permitted provided that the following conditions are met:
64684ddb6SLionel Sambuc *
74684ddb6SLionel Sambuc * 1. Redistributions of source code must retain the above copyright notice,
84684ddb6SLionel Sambuc * this list of conditions and the following disclaimer.
94684ddb6SLionel Sambuc *
104684ddb6SLionel Sambuc * 2. Redistributions in binary form must reproduce the above copyright notice,
114684ddb6SLionel Sambuc * this list of conditions and the following disclaimer in the documentation
124684ddb6SLionel Sambuc * and/or other materials provided with the distribution.
134684ddb6SLionel Sambuc *
144684ddb6SLionel Sambuc * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
154684ddb6SLionel Sambuc * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
164684ddb6SLionel Sambuc * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
174684ddb6SLionel Sambuc * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
184684ddb6SLionel Sambuc * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
194684ddb6SLionel Sambuc * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
204684ddb6SLionel Sambuc * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
214684ddb6SLionel Sambuc * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
224684ddb6SLionel Sambuc * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
234684ddb6SLionel Sambuc * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
244684ddb6SLionel Sambuc * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
254684ddb6SLionel Sambuc */
264684ddb6SLionel Sambuc
274684ddb6SLionel Sambuc /**
284684ddb6SLionel Sambuc * stdexcept.cc - provides stub implementations of the exceptions required by the runtime.
294684ddb6SLionel Sambuc */
304684ddb6SLionel Sambuc #include "stdexcept.h"
314684ddb6SLionel Sambuc
324684ddb6SLionel Sambuc namespace std {
334684ddb6SLionel Sambuc
exception()344684ddb6SLionel Sambuc exception::exception() throw() {}
~exception()354684ddb6SLionel Sambuc exception::~exception() {}
exception(const exception &)364684ddb6SLionel Sambuc exception::exception(const exception&) throw() {}
operator =(const exception &)374684ddb6SLionel Sambuc exception& exception::operator=(const exception&) throw()
384684ddb6SLionel Sambuc {
394684ddb6SLionel Sambuc return *this;
404684ddb6SLionel Sambuc }
what() const414684ddb6SLionel Sambuc const char* exception::what() const throw()
424684ddb6SLionel Sambuc {
434684ddb6SLionel Sambuc return "std::exception";
444684ddb6SLionel Sambuc }
454684ddb6SLionel Sambuc
bad_alloc()464684ddb6SLionel Sambuc bad_alloc::bad_alloc() throw() {}
~bad_alloc()474684ddb6SLionel Sambuc bad_alloc::~bad_alloc() {}
bad_alloc(const bad_alloc &)484684ddb6SLionel Sambuc bad_alloc::bad_alloc(const bad_alloc&) throw() {}
operator =(const bad_alloc &)494684ddb6SLionel Sambuc bad_alloc& bad_alloc::operator=(const bad_alloc&) throw()
504684ddb6SLionel Sambuc {
514684ddb6SLionel Sambuc return *this;
524684ddb6SLionel Sambuc }
what() const534684ddb6SLionel Sambuc const char* bad_alloc::what() const throw()
544684ddb6SLionel Sambuc {
554684ddb6SLionel Sambuc return "cxxrt::bad_alloc";
564684ddb6SLionel Sambuc }
574684ddb6SLionel Sambuc
584684ddb6SLionel Sambuc
594684ddb6SLionel Sambuc
bad_cast()604684ddb6SLionel Sambuc bad_cast::bad_cast() throw() {}
~bad_cast()614684ddb6SLionel Sambuc bad_cast::~bad_cast() {}
bad_cast(const bad_cast &)624684ddb6SLionel Sambuc bad_cast::bad_cast(const bad_cast&) throw() {}
operator =(const bad_cast &)634684ddb6SLionel Sambuc bad_cast& bad_cast::operator=(const bad_cast&) throw()
644684ddb6SLionel Sambuc {
654684ddb6SLionel Sambuc return *this;
664684ddb6SLionel Sambuc }
what() const674684ddb6SLionel Sambuc const char* bad_cast::what() const throw()
684684ddb6SLionel Sambuc {
694684ddb6SLionel Sambuc return "std::bad_cast";
704684ddb6SLionel Sambuc }
714684ddb6SLionel Sambuc
bad_typeid()724684ddb6SLionel Sambuc bad_typeid::bad_typeid() throw() {}
~bad_typeid()734684ddb6SLionel Sambuc bad_typeid::~bad_typeid() {}
bad_typeid(const bad_typeid & __rhs)744684ddb6SLionel Sambuc bad_typeid::bad_typeid(const bad_typeid &__rhs) throw() {}
operator =(const bad_typeid & __rhs)754684ddb6SLionel Sambuc bad_typeid& bad_typeid::operator=(const bad_typeid &__rhs) throw()
764684ddb6SLionel Sambuc {
774684ddb6SLionel Sambuc return *this;
784684ddb6SLionel Sambuc }
794684ddb6SLionel Sambuc
what() const804684ddb6SLionel Sambuc const char* bad_typeid::what() const throw()
814684ddb6SLionel Sambuc {
824684ddb6SLionel Sambuc return "std::bad_typeid";
834684ddb6SLionel Sambuc }
844684ddb6SLionel Sambuc
bad_array_new_length()85*0a6a1f1dSLionel Sambuc bad_array_new_length::bad_array_new_length() throw() {}
~bad_array_new_length()86*0a6a1f1dSLionel Sambuc bad_array_new_length::~bad_array_new_length() {}
bad_array_new_length(const bad_array_new_length &)87*0a6a1f1dSLionel Sambuc bad_array_new_length::bad_array_new_length(const bad_array_new_length&) throw() {}
operator =(const bad_array_new_length &)88*0a6a1f1dSLionel Sambuc bad_array_new_length& bad_array_new_length::operator=(const bad_array_new_length&) throw()
89*0a6a1f1dSLionel Sambuc {
90*0a6a1f1dSLionel Sambuc return *this;
91*0a6a1f1dSLionel Sambuc }
92*0a6a1f1dSLionel Sambuc
what() const93*0a6a1f1dSLionel Sambuc const char* bad_array_new_length::what() const throw()
94*0a6a1f1dSLionel Sambuc {
95*0a6a1f1dSLionel Sambuc return "std::bad_array_new_length";
96*0a6a1f1dSLionel Sambuc }
97*0a6a1f1dSLionel Sambuc
984684ddb6SLionel Sambuc } // namespace std
994684ddb6SLionel Sambuc
100