Main Page | User's Guide | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

Errors.hxx

00001 // Copyright (C) 2001-2004 Vivien Mallet
00002 //
00003 // This file is part of Seldon library.
00004 // Seldon library provides matrices and vectors structures for
00005 // linear algebra.
00006 // 
00007 // Seldon is free software; you can redistribute it and/or modify
00008 // it under the terms of the GNU General Public License as published by
00009 // the Free Software Foundation; either version 2 of the License, or
00010 // (at your option) any later version.
00011 // 
00012 // Seldon 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
00015 // GNU General Public License (file "license") for more details.
00016 //
00017 // For more information, please see the Seldon home page:
00018 //     http://spacetown.free.fr/lib/seldon/
00019 
00020 #ifndef SELDON_FILE_ERRORS_HXX
00021 
00022 namespace Seldon
00023 {
00024 
00025   
00027   // ERROR //
00029 
00030   class Error
00031   {
00032   protected:
00033     string function;
00034     string comment;
00035 
00036   public:
00037     Error()  throw();
00038     Error(string f)  throw();
00039     Error(string f, string c)  throw();
00040     virtual ~Error()  throw();
00041 
00042     virtual void What();
00043 
00044   };
00045 
00046   
00048   // NOMEMORY //
00050 
00051   class NoMemory: public Error
00052   {
00053   public:
00054     NoMemory(string f)  throw();
00055     NoMemory(string f, string c)  throw();
00056 
00057     virtual void What();
00058   };
00059   
00060 
00062   // WRONGDIM //
00064 
00065   class WrongDim: public Error
00066   {
00067   public:
00068     WrongDim(string f)  throw();
00069     WrongDim(string f, string c)  throw();
00070 
00071     virtual void What();
00072   };
00073   
00074 
00076   // WRONGINDEX //
00078 
00079   class WrongIndex: public Error
00080   {
00081   public:
00082     WrongIndex(string f)  throw();
00083     WrongIndex(string f, string c)  throw();
00084 
00085     virtual void What();
00086   };
00087   
00088 
00090   // WRONGROW //
00092 
00093   class WrongRow: public Error
00094   {
00095   public:
00096     WrongRow(string f)  throw();
00097     WrongRow(string f, string c)  throw();
00098 
00099     virtual void What();
00100   };
00101   
00102 
00104   // WRONGCOL //
00106 
00107   class WrongCol: public Error
00108   {
00109   public:
00110     WrongCol(string f)  throw();
00111     WrongCol(string f, string c)  throw();
00112 
00113     virtual void What();
00114   };
00115   
00116 
00118   // IOERROR //
00120 
00121   class IOError: public Error
00122   {
00123   public:
00124     IOError(string f)  throw();
00125     IOError(string f, string c)  throw();
00126 
00127     virtual void What();
00128   };
00129   
00130 
00131 } // namespace Seldon.
00132 
00133 #define SELDON_FILE_ERRORS_HXX
00134 #endif

Generated on Sun Jan 16 23:37:57 2005 for Multivac by  doxygen 1.4.0