comparison base/Exceptions.h @ 544:65d955c4d671

* throw (but do not yet catch!) exception when running out of disc space in coded audio file * simpler (faster?) cache-to-cache move operation in spectrogram, and some other minor fixes
author Chris Cannam
date Wed, 04 Feb 2009 12:13:16 +0000
parents 7aa1de571880
children b4a8d8221eaf
comparison
equal deleted inserted replaced
543:7a66b94ef1c0 544:65d955c4d671
79 class InsufficientDiscSpace : virtual public std::exception 79 class InsufficientDiscSpace : virtual public std::exception
80 { 80 {
81 public: 81 public:
82 InsufficientDiscSpace(QString directory, 82 InsufficientDiscSpace(QString directory,
83 size_t required, size_t available) throw(); 83 size_t required, size_t available) throw();
84 InsufficientDiscSpace(QString directory) throw();
84 virtual ~InsufficientDiscSpace() throw() { } 85 virtual ~InsufficientDiscSpace() throw() { }
85 virtual const char *what() const throw(); 86 virtual const char *what() const throw();
86 87
88 QString getDirectory() const { return m_directory; }
87 size_t getRequired() const { return m_required; } 89 size_t getRequired() const { return m_required; }
88 size_t getAvailable() const { return m_available; } 90 size_t getAvailable() const { return m_available; }
89 91
90 protected: 92 protected:
91 QString m_directory; 93 QString m_directory;