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

Description

Definition at line 21 of file Error.h.

Inheritance diagram for Error:
[legend]
Collaboration diagram for Error:
[legend]

Public Member Functions

 Error (const QString &message)
 
const char * what () const noexcept override
 

Private Attributes

QByteArray m_messageAsLatin1
 

Constructor & Destructor Documentation

◆ Error()

Error::Error ( const QString &  message)
explicit

Definition at line 17 of file Error.cpp.

18  : m_messageAsLatin1(message.toLatin1())
19 {
20 }
QByteArray m_messageAsLatin1
Definition: Error.h:27

Member Function Documentation

◆ what()

const char * Error::what ( ) const
overridenoexcept

Definition at line 22 of file Error.cpp.

23 {
24  return m_messageAsLatin1.data();
25 }

References m_messageAsLatin1.

Member Data Documentation

◆ m_messageAsLatin1

QByteArray Error::m_messageAsLatin1
private

Definition at line 27 of file Error.h.

Referenced by what().


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