Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std_stdexcept.h

Go to the documentation of this file.
00001 // Standard exception classes  -*- C++ -*-
00002 
00003 // Copyright (C) 2001 Free Software Foundation, Inc.
00004 //
00005 // This file is part of the GNU ISO C++ Library.  This library is free
00006 // software; you can redistribute it and/or modify it under the
00007 // terms of the GNU General Public License as published by the
00008 // Free Software Foundation; either version 2, or (at your option)
00009 // any later version.
00010 
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 
00016 // You should have received a copy of the GNU General Public License along
00017 // with this library; see the file COPYING.  If not, write to the Free
00018 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
00019 // USA.
00020 
00021 // As a special exception, you may use this file as part of a free software
00022 // library without restriction.  Specifically, if other files instantiate
00023 // templates or use macros or inline functions from this file, or you compile
00024 // this file and link it with other files to produce an executable, this
00025 // file does not by itself cause the resulting executable to be covered by
00026 // the GNU General Public License.  This exception does not however
00027 // invalidate any other reasons why the executable file might be covered by
00028 // the GNU General Public License.
00029 
00030 //
00031 // ISO C++ 19.1  Exception classes
00032 //
00033 
00034 #ifndef _CPP_STDEXCEPT
00035 #define _CPP_STDEXCEPT    1
00036 
00037 #pragma GCC system_header
00038 
00039 #include <exception>
00040 #include <string>
00041 
00042 namespace std 
00043 {
00044   class logic_error : public exception 
00045   {
00046     string _M_msg;
00047 
00048   public:
00049     explicit 
00050     logic_error(const string&  __arg);
00051 
00052     virtual 
00053     ~logic_error() throw();
00054 
00055     virtual const char* 
00056     what() const throw();
00057   };
00058 
00059   class domain_error : public logic_error 
00060   {
00061   public:
00062     explicit domain_error(const string&  __arg);
00063   };
00064 
00065   class invalid_argument : public logic_error 
00066   {
00067   public:
00068     explicit invalid_argument(const string&  __arg);
00069   };
00070 
00071   class length_error : public logic_error 
00072   {
00073   public:
00074     explicit length_error(const string&  __arg);
00075   };
00076 
00077   class out_of_range : public logic_error 
00078   {
00079   public:
00080     explicit out_of_range(const string&  __arg);
00081   };
00082 
00083   class runtime_error : public exception 
00084   {
00085     string _M_msg;
00086 
00087   public:
00088     explicit 
00089     runtime_error(const string&  __arg);
00090 
00091     virtual 
00092     ~runtime_error() throw();
00093 
00094     virtual const char* 
00095     what() const throw();
00096   };
00097 
00098   class range_error : public runtime_error 
00099   {
00100   public:
00101     explicit range_error(const string&  __arg);
00102   };
00103 
00104   class overflow_error : public runtime_error 
00105   {
00106   public:
00107     explicit overflow_error(const string&  __arg);
00108   };
00109 
00110   class underflow_error : public runtime_error 
00111   {
00112   public:
00113     explicit underflow_error(const string&  __arg);
00114   };
00115 } // namespace std
00116 
00117 #endif // _CPP_STDEXCEPT

Generated at Tue May 1 16:28:38 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001