alkimia
8.0.3
src
alkexception.h
Go to the documentation of this file.
1
/***************************************************************************
2
* Copyright 2000-2018 Thomas Baumgart tbaumgart@kde.org *
3
* *
4
* This file is part of libalkimia. *
5
* *
6
* libalkimia is free software; you can redistribute it and/or *
7
* modify it under the terms of the GNU General Public License *
8
* as published by the Free Software Foundation; either version 2.1 of *
9
* the License or (at your option) version 3 or any later version. *
10
* *
11
* libalkimia is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
15
* *
16
* You should have received a copy of the GNU General Public License *
17
* along with this program. If not, see <http://www.gnu.org/licenses/> *
18
***************************************************************************/
19
20
#ifndef ALKEXCEPTION_H
21
#define ALKEXCEPTION_H
22
23
#include <alkimia/alk_export.h>
24
25
#include <QString>
26
36
class
ALK_NO_EXPORT
AlkException
37
{
38
public
:
39
48
#define ALKEXCEPTION(what) AlkException(what, __FILE__, __LINE__)
49
63
AlkException
(
const
QString &msg,
const
QString &file,
const
unsigned
long
line);
64
65
~
AlkException
();
66
73
const
QString &
what
()
const
74
{
75
return
m_msg;
76
}
77
84
const
QString &
file
()
const
85
{
86
return
m_file;
87
}
88
95
unsigned
long
line
()
const
96
{
97
return
m_line;
98
}
99
100
private
:
104
QString
m_msg
;
105
109
QString
m_file
;
110
114
unsigned
long
m_line
;
115
};
116
117
#endif
AlkException::file
const QString & file() const
Definition:
alkexception.h:84
AlkException::what
const QString & what() const
Definition:
alkexception.h:73
AlkException
Definition:
alkexception.h:36
AlkException::m_file
QString m_file
Definition:
alkexception.h:109
AlkException::m_line
unsigned long m_line
Definition:
alkexception.h:114
AlkException::line
unsigned long line() const
Definition:
alkexception.h:95
AlkException::m_msg
QString m_msg
Definition:
alkexception.h:104
Generated by
1.8.17