SymbolEditor  1.3.0
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
Exceptions.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2011 by Stephen Allewell *
3  * sallewell@users.sourceforge.net *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ********************************************************************************/
10 
11 
18 #ifndef Exceptions_H
19 #define Exceptions_H
20 
21 
22 #include <QDataStream>
23 #include <QtGlobal>
24 
25 
32 {
33 public:
34  InvalidFile();
35  ~InvalidFile();
36 
37 private:
38 };
39 
40 
47 {
48 public:
49  explicit InvalidFileVersion(qint32 v);
51 
52  qint32 version;
53 };
54 
55 
62 {
63 public:
64  explicit FailedReadLibrary(QDataStream::Status status);
66 
67  QString statusMessage() const;
68 
69 private:
70  QDataStream::Status m_status;
71 };
72 
73 
80 {
81 public:
82  explicit FailedWriteLibrary(QDataStream::Status status);
84 
85  QString statusMessage() const;
86 
87 private:
88  QDataStream::Status m_status;
89 };
90 
91 
98 {
99 public:
100  explicit InvalidSymbolVersion(qint32 v);
102 
103  qint32 version;
104 };
105 
106 
107 #endif