Mantid
|
Exception for index errors. More...
#include <Exception.h>
Public Member Functions | |
IndexError (const IndexError &A) | |
Copy Constructor. More... | |
IndexError (const size_t V, const size_t B, const std::string &Place) | |
Constructor. More... | |
IndexError & | operator= (const IndexError &A) |
const char * | what () const noexcept override |
Overloaded reporting method. More... | |
Private Attributes | |
std::string | m_message |
The message reported by what() More... | |
const size_t | maxVal |
Maximum value. More... | |
const size_t | Val |
Actual value called. More... | |
Exception for index errors.
Called when an index falls out of range
Definition at line 284 of file Exception.h.
TEMPLATE Mantid::Kernel::Exception::IndexError::IndexError | ( | const size_t | V, |
const size_t | B, | ||
const std::string & | Place | ||
) |
Constructor.
V | :: Value of index |
B | :: Maximum value |
Place | :: Location of Error |
Definition at line 254 of file Exception.cpp.
Mantid::Kernel::Exception::IndexError::IndexError | ( | const IndexError & | A | ) |
IndexError & Mantid::Kernel::Exception::IndexError::operator= | ( | const IndexError & | A | ) |
|
overridenoexcept |
Overloaded reporting method.
Writes out the range and limits.
Definition at line 271 of file Exception.cpp.
References m_message.
|
private |
The message reported by what()
Definition at line 288 of file Exception.h.
Referenced by IndexError(), and what().
|
private |
|
private |