Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Mantid::Kernel::Exception::ExistsError Class Referencefinal

Exception for when an item is already in a collection. More...

#include <Exception.h>

Inheritance diagram for Mantid::Kernel::Exception::ExistsError:

Public Member Functions

 ExistsError (const ExistsError &A)
 Copy constructor. More...
 
 ExistsError (const std::string &, std::string)
 Constructor. More...
 
ExistsErroroperator= (const ExistsError &A)
 Assignment operator. More...
 
const char * what () const noexcept override
 Writes out the range and limits. More...
 

Private Attributes

const std::string objectName
 The name of the search object. More...
 
std::string outMessage
 The message returned by what() More...
 

Detailed Description

Exception for when an item is already in a collection.

Definition at line 164 of file Exception.h.

Constructor & Destructor Documentation

◆ ExistsError() [1/2]

Mantid::Kernel::Exception::ExistsError::ExistsError ( const std::string &  Desc,
std::string  ObjectName 
)

Constructor.

Parameters
Desc:: Function description
ObjectName:: The name of the search object

Definition at line 114 of file Exception.cpp.

References objectName, and outMessage.

◆ ExistsError() [2/2]

Mantid::Kernel::Exception::ExistsError::ExistsError ( const ExistsError A)

Copy constructor.

Definition at line 120 of file Exception.cpp.

Member Function Documentation

◆ operator=()

ExistsError & Mantid::Kernel::Exception::ExistsError::operator= ( const ExistsError A)

Assignment operator.

◆ what()

const char * Mantid::Kernel::Exception::ExistsError::what ( ) const
overridenoexcept

Writes out the range and limits.

Returns
a char array of foramtted error information

Definition at line 125 of file Exception.cpp.

References outMessage.

Member Data Documentation

◆ objectName

const std::string Mantid::Kernel::Exception::ExistsError::objectName
private

The name of the search object.

Definition at line 167 of file Exception.h.

Referenced by ExistsError().

◆ outMessage

std::string Mantid::Kernel::Exception::ExistsError::outMessage
private

The message returned by what()

Definition at line 169 of file Exception.h.

Referenced by ExistsError(), and what().


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