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 
16 #include <QString>
17 #include <utility>
18 
20  : m_text(std::move(t))
21 {
22 }
23 
25 {
26  return DeserializationException("The found file is too old.");
27 }
28 
30 {
31  return DeserializationException("The found file is too new.");
32 }
33 
35 {
36  return DeserializationException("The data seems to be corrupted.");
37 }
38 
40 {
41  return m_text;
42 }
Defines class DeserializationException.
static DeserializationException streamError()
static DeserializationException tooOld()
static DeserializationException tooNew()