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):
85 Some "old-style" interrupts:
88 class InvalidPositionException : public BaseException
91 InvalidPositionException():
92 BaseException("Somebody tried to get/set something in a nonexistent position.")
94 InvalidPositionException(const char *s):
99 class TargetInexistentException : public std::exception
101 virtual const char * what() const throw()
103 return "Somebody tried to refer to something that doesn't exist.";
107 class NullPointerException : public std::exception
109 virtual const char * what() const throw()
111 return "NullPointerException";