comparison base/Exceptions.h @ 935:f960d67ce842 tonioni

Merge from branch warnfix_no_size_t
author Chris Cannam
date Wed, 18 Jun 2014 13:42:01 +0100
parents 6a94bb528e9d
children cc27f35aa75c
comparison
equal deleted inserted replaced
925:3efc20c59a94 935:f960d67ce842
80 80
81 class InsufficientDiscSpace : virtual public std::exception 81 class InsufficientDiscSpace : virtual public std::exception
82 { 82 {
83 public: 83 public:
84 InsufficientDiscSpace(QString directory, 84 InsufficientDiscSpace(QString directory,
85 size_t required, size_t available) throw(); 85 int required, int available) throw();
86 InsufficientDiscSpace(QString directory) throw(); 86 InsufficientDiscSpace(QString directory) throw();
87 virtual ~InsufficientDiscSpace() throw() { } 87 virtual ~InsufficientDiscSpace() throw() { }
88 virtual const char *what() const throw(); 88 virtual const char *what() const throw();
89 89
90 QString getDirectory() const { return m_directory; } 90 QString getDirectory() const { return m_directory; }
91 size_t getRequired() const { return m_required; } 91 int getRequired() const { return m_required; }
92 size_t getAvailable() const { return m_available; } 92 int getAvailable() const { return m_available; }
93 93
94 protected: 94 protected:
95 QString m_directory; 95 QString m_directory;
96 size_t m_required; 96 int m_required;
97 size_t m_available; 97 int m_available;
98 }; 98 };
99 99
100 class AllocationFailed : virtual public std::exception 100 class AllocationFailed : virtual public std::exception
101 { 101 {
102 public: 102 public: