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