1ffeaf689SAlexander Kabaev // Iostreams base classes -*- C++ -*-
2ffeaf689SAlexander Kabaev
3*f8a1b7d9SAlexander Kabaev // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005
4ffeaf689SAlexander Kabaev // Free Software Foundation, Inc.
5ffeaf689SAlexander Kabaev //
6ffeaf689SAlexander Kabaev // This file is part of the GNU ISO C++ Library. This library is free
7ffeaf689SAlexander Kabaev // software; you can redistribute it and/or modify it under the
8ffeaf689SAlexander Kabaev // terms of the GNU General Public License as published by the
9ffeaf689SAlexander Kabaev // Free Software Foundation; either version 2, or (at your option)
10ffeaf689SAlexander Kabaev // any later version.
11ffeaf689SAlexander Kabaev
12ffeaf689SAlexander Kabaev // This library is distributed in the hope that it will be useful,
13ffeaf689SAlexander Kabaev // but WITHOUT ANY WARRANTY; without even the implied warranty of
14ffeaf689SAlexander Kabaev // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15ffeaf689SAlexander Kabaev // GNU General Public License for more details.
16ffeaf689SAlexander Kabaev
17ffeaf689SAlexander Kabaev // You should have received a copy of the GNU General Public License along
18ffeaf689SAlexander Kabaev // with this library; see the file COPYING. If not, write to the Free
19*f8a1b7d9SAlexander Kabaev // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
20ffeaf689SAlexander Kabaev // USA.
21ffeaf689SAlexander Kabaev
22ffeaf689SAlexander Kabaev // As a special exception, you may use this file as part of a free software
23ffeaf689SAlexander Kabaev // library without restriction. Specifically, if other files instantiate
24ffeaf689SAlexander Kabaev // templates or use macros or inline functions from this file, or you compile
25ffeaf689SAlexander Kabaev // this file and link it with other files to produce an executable, this
26ffeaf689SAlexander Kabaev // file does not by itself cause the resulting executable to be covered by
27ffeaf689SAlexander Kabaev // the GNU General Public License. This exception does not however
28ffeaf689SAlexander Kabaev // invalidate any other reasons why the executable file might be covered by
29ffeaf689SAlexander Kabaev // the GNU General Public License.
30ffeaf689SAlexander Kabaev
31ffeaf689SAlexander Kabaev //
32ffeaf689SAlexander Kabaev // ISO C++ 14882: 27.4.2.1.1 Class ios_base::failure
33ffeaf689SAlexander Kabaev //
34ffeaf689SAlexander Kabaev
35ffeaf689SAlexander Kabaev #include <ios>
36ffeaf689SAlexander Kabaev
_GLIBCXX_BEGIN_NAMESPACE(std)37*f8a1b7d9SAlexander Kabaev _GLIBCXX_BEGIN_NAMESPACE(std)
38*f8a1b7d9SAlexander Kabaev
39ffeaf689SAlexander Kabaev ios_base::failure::failure(const string& __str) throw()
40ffeaf689SAlexander Kabaev : _M_msg(__str) { }
41ffeaf689SAlexander Kabaev
~failure()42ffeaf689SAlexander Kabaev ios_base::failure::~failure() throw()
43ffeaf689SAlexander Kabaev { }
44ffeaf689SAlexander Kabaev
45ffeaf689SAlexander Kabaev const char*
what() const46ffeaf689SAlexander Kabaev ios_base::failure::what() const throw()
47ffeaf689SAlexander Kabaev { return _M_msg.c_str(); }
48*f8a1b7d9SAlexander Kabaev
49*f8a1b7d9SAlexander Kabaev _GLIBCXX_END_NAMESPACE
50