S3FC project page S3FC home page

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

s3_exception.h

Go to the documentation of this file.
00001 /*
00002  * Stone Three Foundation Class (s3fc) provides a number of utility classes.
00003  * Copyright (C) 2001 by Stone Three Signal Processing (Pty) Ltd.
00004  *
00005  * Authored by Stone Three Signal Processing (Pty) Ltd.
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  * 
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020  * 
00021  * Please see the file 'COPYING' in the source root directory.
00022  */
00023 
00033 #ifndef S3_EXCEPTION_H
00034 #define S3_EXCEPTION_H
00035 
00036 #include <exception>
00037 #include <string>
00038 
00063 class s3_exception : public std::exception
00064 {
00065   protected:
00069    std::string err_string;
00074    s3_exception(const std::string& str);
00075   public:
00080    s3_exception(const s3_exception& src);
00084    ~s3_exception() throw() {}
00088    virtual const char* what() const throw();
00089 };
00090 
00119 class s3_generic_exception : public s3_exception
00120 {
00121   public:
00125    s3_generic_exception();
00132    s3_generic_exception( const std::string& n_where,
00133                          const std::string& n_what );
00134 };
00135 
00140 class s3_index_exception : public s3_exception
00141 {
00142   public:
00150    s3_index_exception( const std::string& where,
00151                        int min,
00152                        int max,
00153                        int val );
00154 };
00155 
00156 #endif
00157 

Send comments to: s3fc@stonethree.com SourceForge Logo