BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
DeserializationException Class Reference

Description

Definition at line 20 of file DeserializationException.h.

Public Member Functions

QString text () const
 

Static Public Member Functions

static DeserializationException streamError ()
 
static DeserializationException tooNew ()
 
static DeserializationException tooOld ()
 

Private Member Functions

 DeserializationException (QString t)
 

Private Attributes

QString m_text
 

Constructor & Destructor Documentation

◆ DeserializationException()

DeserializationException::DeserializationException ( QString  t)
private

Definition at line 19 of file DeserializationException.cpp.

20  : m_text(std::move(t))
21 {
22 }

Referenced by streamError(), tooNew(), and tooOld().

Member Function Documentation

◆ streamError()

DeserializationException DeserializationException::streamError ( )
static

Definition at line 34 of file DeserializationException.cpp.

35 {
36  return DeserializationException("The data seems to be corrupted.");
37 }

References DeserializationException().

Referenced by Streamer::assertCurrentTag(), Streamer::assertCurrentToken(), GUI::Session::XML::assertExpectedTag(), QREDataLoader::ImportSettings::deserialize(), AutomaticDataLoader1D::deserialize(), QREDataLoader::deserialize(), and RealDataItem::deserializeBinaryData().

Here is the call graph for this function:

◆ text()

QString DeserializationException::text ( ) const

Definition at line 39 of file DeserializationException.cpp.

40 {
41  return m_text;
42 }

References m_text.

Referenced by ApplicationModels::readFrom(), and ProjectDocument::readProject().

◆ tooNew()

DeserializationException DeserializationException::tooNew ( )
static

◆ tooOld()

DeserializationException DeserializationException::tooOld ( )
static

Definition at line 24 of file DeserializationException.cpp.

25 {
26  return DeserializationException("The found file is too old.");
27 }

References DeserializationException().

Referenced by Streamer::assertVersion(), QREDataLoader::deserialize(), ParameterContainerItem::readContentFrom(), MaterialItem::readContentFrom(), SimulationOptionsItem::readContentFrom(), and JobItem::readNonSessionItems().

Here is the call graph for this function:

Member Data Documentation

◆ m_text

QString DeserializationException::m_text
private

Definition at line 32 of file DeserializationException.h.

Referenced by text().


The documentation for this class was generated from the following files: