system.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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 }
00077
00078 #endif