Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::Kernel::Exception::MisMatch< T > Class Template Reference

Error when two numbers should be identical (or close) More...

#include <Exception.h>

Inheritance diagram for Mantid::Kernel::Exception::MisMatch< T >:

Public Member Functions

 MisMatch (const MisMatch< T > &A)
 Copy Constructor. More...
 
 MisMatch (const T &, const T &, const std::string &)
 Constructor store two mismatched items. More...
 
MisMatch< T > & operator= (const MisMatch< T > &rhs)=delete
 
const char * what () const noexcept override
 Overloaded reporting method. More...
 

Private Attributes

const T Aval
 Number A. More...
 
const T Bval
 container size More...
 
std::string m_message
 The message reported by what() More...
 

Detailed Description

template<typename T>
class Mantid::Kernel::Exception::MisMatch< T >

Error when two numbers should be identical (or close)

Records the object being looked for and the range required.

Definition at line 263 of file Exception.h.

Constructor & Destructor Documentation

◆ MisMatch() [1/2]

template<typename T >
Mantid::Kernel::Exception::MisMatch< T >::MisMatch ( const T &  A,
const T &  B,
const std::string &  Place 
)

Constructor store two mismatched items.

Parameters
A:: Item to store
B:: Item to store
Place:: Reason/Code item for error

Definition at line 206 of file Exception.cpp.

References Mantid::Kernel::Exception::MisMatch< T >::Aval, Mantid::Kernel::Exception::MisMatch< T >::Bval, and Mantid::Kernel::Exception::MisMatch< T >::m_message.

◆ MisMatch() [2/2]

template<typename T >
Mantid::Kernel::Exception::MisMatch< T >::MisMatch ( const MisMatch< T > &  A)

Copy Constructor.

Parameters
A:: MisMatch to copy

Definition at line 221 of file Exception.cpp.

Member Function Documentation

◆ operator=()

template<typename T >
MisMatch< T > & Mantid::Kernel::Exception::MisMatch< T >::operator= ( const MisMatch< T > &  rhs)
delete

◆ what()

template<typename T >
const char * Mantid::Kernel::Exception::MisMatch< T >::what
overridenoexcept

Overloaded reporting method.

Writes out the two mismatched items.

Returns
String description of error

Definition at line 230 of file Exception.cpp.

Member Data Documentation

◆ Aval

template<typename T >
const T Mantid::Kernel::Exception::MisMatch< T >::Aval
private

Number A.

Definition at line 265 of file Exception.h.

Referenced by Mantid::Kernel::Exception::MisMatch< T >::MisMatch().

◆ Bval

template<typename T >
const T Mantid::Kernel::Exception::MisMatch< T >::Bval
private

container size

Definition at line 266 of file Exception.h.

Referenced by Mantid::Kernel::Exception::MisMatch< T >::MisMatch().

◆ m_message

template<typename T >
std::string Mantid::Kernel::Exception::MisMatch< T >::m_message
private

The message reported by what()

Definition at line 267 of file Exception.h.

Referenced by Mantid::Kernel::Exception::MisMatch< T >::MisMatch().


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