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

Exception for errors associated with the instrument definition. More...

#include <Exception.h>

Inheritance diagram for Mantid::Kernel::Exception::InstrumentDefinitionError:

Public Member Functions

 InstrumentDefinitionError (const InstrumentDefinitionError &A)
 Copy constructor. More...
 
 InstrumentDefinitionError (const std::string &)
 Constructor. More...
 
 InstrumentDefinitionError (const std::string &, std::string)
 Constructor. More...
 
InstrumentDefinitionErroroperator= (const InstrumentDefinitionError &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 errors associated with the instrument definition.

This might e.g. occur while reading the instrument definition file.

Definition at line 220 of file Exception.h.

Constructor & Destructor Documentation

◆ InstrumentDefinitionError() [1/3]

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

Constructor.

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

Definition at line 152 of file Exception.cpp.

References objectName, and outMessage.

◆ InstrumentDefinitionError() [2/3]

Mantid::Kernel::Exception::InstrumentDefinitionError::InstrumentDefinitionError ( const std::string &  Desc)

Constructor.

Parameters
Desc:: Function description

Definition at line 161 of file Exception.cpp.

References outMessage.

◆ InstrumentDefinitionError() [3/3]

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

Copy constructor.

Definition at line 166 of file Exception.cpp.

Member Function Documentation

◆ operator=()

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

Assignment operator.

◆ what()

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

Writes out the range and limits.

Returns
a char array of foramtted error information

Definition at line 172 of file Exception.cpp.

References outMessage.

Referenced by Mantid::DataHandling::LoadMcStas::readEventData().

Member Data Documentation

◆ objectName

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

The name of the search object.

Definition at line 223 of file Exception.h.

Referenced by InstrumentDefinitionError().

◆ outMessage

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

The message returned by what()

Definition at line 225 of file Exception.h.

Referenced by InstrumentDefinitionError(), and what().


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