BornAgain  1.19.0
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/coregui/utils/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 
16 #include <QString>
17 
19 
21 {
22  return DeserializationException("The found file is too old.");
23 }
24 
26 {
27  return DeserializationException("The found file is too new.");
28 }
29 
31 {
32  return DeserializationException("The data seems to be corrupted.");
33 }
34 
36 {
37  return m_text;
38 }
Defines class DeserializationException.
static DeserializationException streamError()
static DeserializationException tooOld()
static DeserializationException tooNew()
DeserializationException(const QString &t)