Path: blob/main/system/lib/libcxxabi/src/stdlib_exception.cpp
6173 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include <new>9#include <exception>1011namespace std12{1314// exception1516exception::~exception() noexcept17{18}1920const char* exception::what() const noexcept21{22return "std::exception";23}2425// bad_exception2627bad_exception::~bad_exception() noexcept28{29}3031const char* bad_exception::what() const noexcept32{33return "std::bad_exception";34}353637// bad_alloc3839bad_alloc::bad_alloc() noexcept40{41}4243bad_alloc::~bad_alloc() noexcept44{45}4647const char*48bad_alloc::what() const noexcept49{50return "std::bad_alloc";51}5253// bad_array_new_length5455bad_array_new_length::bad_array_new_length() noexcept56{57}5859bad_array_new_length::~bad_array_new_length() noexcept60{61}6263const char*64bad_array_new_length::what() const noexcept65{66return "bad_array_new_length";67}6869} // std707172