1 #ifndef EXCEPTIONS_HEADER
2 #define EXCEPTIONS_HEADER
6 class BaseException : public std::exception
9 BaseException(const char *s)
13 virtual const char * what() const throw()
20 class AsyncQueuedException : public BaseException
23 AsyncQueuedException(const char *s):
28 class NotImplementedException : public BaseException
31 NotImplementedException(const char *s):
36 class AlreadyExistsException : public BaseException
39 AlreadyExistsException(const char *s):
44 class VersionMismatchException : public BaseException
47 VersionMismatchException(const char *s):
52 class FileNotGoodException : public BaseException
55 FileNotGoodException(const char *s):
60 class SerializationError : public BaseException
63 SerializationError(const char *s):
68 class LoadError : public BaseException
71 LoadError(const char *s):
76 class ContainerFullException : public BaseException
79 ContainerFullException(const char *s):
84 class SettingNotFoundException : public BaseException
87 SettingNotFoundException(const char *s):
92 class InvalidFilenameException : public BaseException
95 InvalidFilenameException(const char *s):
101 Some "old-style" interrupts:
104 class InvalidPositionException : public BaseException
107 InvalidPositionException():
108 BaseException("Somebody tried to get/set something in a nonexistent position.")
110 InvalidPositionException(const char *s):
115 class TargetInexistentException : public std::exception
117 virtual const char * what() const throw()
119 return "Somebody tried to refer to something that doesn't exist.";
123 class NullPointerException : public std::exception
125 virtual const char * what() const throw()
127 return "NullPointerException";