BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
DeserializationException.cpp
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file GUI/Util/DeserializationException.cpp
6
//! @brief Implements class DeserializationException
7
//!
8
//! @homepage http://www.bornagainproject.org
9
//! @license GNU General Public License v3 or higher (see COPYING)
10
//! @copyright Forschungszentrum Jülich GmbH 2021
11
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12
//
13
// ************************************************************************************************
14
15
#include "
GUI/Util/DeserializationException.h
"
16
#include <QString>
17
#include <utility>
18
19
DeserializationException::DeserializationException
(QString t)
20
: m_text(std::move(t))
21
{
22
}
23
24
DeserializationException
DeserializationException::tooOld
()
25
{
26
return
DeserializationException
(
"The found file is too old."
);
27
}
28
29
DeserializationException
DeserializationException::tooNew
()
30
{
31
return
DeserializationException
(
"The found file is too new."
);
32
}
33
34
DeserializationException
DeserializationException::streamError
()
35
{
36
return
DeserializationException
(
"The data seems to be corrupted."
);
37
}
38
39
QString
DeserializationException::text
()
const
40
{
41
return
m_text
;
42
}
DeserializationException.h
Defines class DeserializationException.
DeserializationException
Definition:
DeserializationException.h:20
DeserializationException::streamError
static DeserializationException streamError()
Definition:
DeserializationException.cpp:34
DeserializationException::m_text
QString m_text
Definition:
DeserializationException.h:32
DeserializationException::tooOld
static DeserializationException tooOld()
Definition:
DeserializationException.cpp:24
DeserializationException::tooNew
static DeserializationException tooNew()
Definition:
DeserializationException.cpp:29
DeserializationException::DeserializationException
DeserializationException(QString t)
Definition:
DeserializationException.cpp:19
DeserializationException::text
QString text() const
Definition:
DeserializationException.cpp:39
GUI
Util
DeserializationException.cpp
Generated by
1.9.1