Fawkes API
Fawkes Development Version
|
00001 /*************************************************************************** 00002 * exceptions.h - Fawkes tf exceptions 00003 * 00004 * Created: Tue Oct 18 16:38:22 2011 00005 * Copyright 2011 Tim Niemueller [www.niemueller.de] 00006 ****************************************************************************/ 00007 00008 /* This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU General Public License as published by 00010 * the Free Software Foundation; either version 2 of the License, or 00011 * (at your option) any later version. A runtime exception applies to 00012 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU Library General Public License for more details. 00018 * 00019 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00020 */ 00021 00022 #ifndef __LIBS_TF_EXCEPTIONS_H_ 00023 #define __LIBS_TF_EXCEPTIONS_H_ 00024 00025 #include <core/exception.h> 00026 00027 namespace fawkes { 00028 namespace tf { 00029 #if 0 /* just to make Emacs auto-indent happy */ 00030 } 00031 } 00032 #endif 00033 00034 class TransformException : public fawkes::Exception 00035 { 00036 public: 00037 TransformException(); 00038 }; 00039 00040 class ConnectivityException : public TransformException 00041 { 00042 public: 00043 ConnectivityException(const char *format, ...); 00044 }; 00045 00046 class LookupException : public TransformException 00047 { 00048 public: 00049 LookupException(const char *format, ...); 00050 }; 00051 00052 class ExtrapolationException : public TransformException 00053 { 00054 public: 00055 ExtrapolationException(const char *format, ...); 00056 }; 00057 00058 class InvalidArgumentException : public TransformException 00059 { 00060 public: 00061 InvalidArgumentException(const char *format, ...); 00062 }; 00063 00064 class DisabledException : public TransformException 00065 { 00066 public: 00067 DisabledException(const char *format, ...); 00068 }; 00069 00070 00071 } // end namespace tf 00072 } // end namespace fawkes 00073 00074 #endif