8#include "MantidKernel/DllConfig.h"
21 :
std::runtime_error(Desc), fileName(
std::move(FName)) {
37 :
FileError(desc, fileName), m_lineNumber(lineNumber) {
68 :
std::runtime_error(Desc), objectName(
std::move(ObjectName)) {
81 outMessage = std::string(std::runtime_error::what()) +
" search object '" + obName +
"'";
89 outMessage = std::string(std::runtime_error::what()) +
" search object '" + obName +
"'";
97 outMessage = std::string(std::runtime_error::what()) +
" search object '" + obName +
"'";
116 :
std::runtime_error(Desc), objectName(
std::move(ObjectName)) {
154 :
std::runtime_error(Desc), objectName(
std::move(ObjectName)) {
156 ". See http://docs.mantidproject.org/concepts/InstrumentDefinitionFile for IDF syntax.";
163 outMessage = std::string(std::runtime_error::what());
168 :
std::runtime_error(A), objectName(A.objectName) {}
183 :
std::runtime_error(Desc), objectName(
std::move(ObjectName)) {
191 outMessage = std::string(std::runtime_error::what());
208 :
std::runtime_error(Place), Aval(A), Bval(B)
216 std::stringstream cx;
217 cx << Place <<
" Item A!=B " <<
Aval <<
" " <<
Bval <<
" ";
223 :
std::runtime_error(A), Aval(A.Aval), Bval(A.Bval)
237 return m_message.c_str();
256 :
std::runtime_error(Place), Val(V), maxVal(B) {
257 std::stringstream cx;
258 cx <<
"IndexError: " << Place <<
" " <<
Val <<
" :: 0 <==> " <<
maxVal;
283 :
std::runtime_error(place),
284 outMessage(
"Attempt to dereference zero pointer (" + objectName +
") in function " + place) {}
298 std::stringstream cx;
299 cx <<
"InternetError: ";
328 m_message(
"Number of fitting parameters is different from original value of " +
std::
to_string(oldSize)) {}
334 :
std::exception(), m_message(
"Number of fitting parameters changed from " +
std::
to_string(oldSize) +
" to " +
Exception for a call to an abstract class function.
std::string outMessage
The message returned by what()
const std::string objectName
The name of the search object.
AbsObjMethod(std::string)
Constructor.
const char * what() const noexcept override
Writes out the range and limits.
Exception for when an item is already in a collection.
std::string outMessage
The message returned by what()
const std::string objectName
The name of the search object.
ExistsError(const std::string &, std::string)
Constructor.
const char * what() const noexcept override
Writes out the range and limits.
Records the filename and the description of failure.
const std::string fileName
The name of the file relating to the error.
FileError(const std::string &Desc, std::string FName)
Constructor.
std::string outMessage
The message returned by what()
const char * what() const noexcept override
Writes out the range and limits.
FitSizeWarning(size_t oldSize)
Constructor.
const char * what() const noexcept override
Get the warning message.
Exception for index errors.
const char * what() const noexcept override
Overloaded reporting method.
const size_t Val
Actual value called.
const size_t maxVal
Maximum value.
IndexError(const size_t V, const size_t B, const std::string &Place)
Constructor.
std::string m_message
The message reported by what()
Exception for errors associated with the instrument definition.
const char * what() const noexcept override
Writes out the range and limits.
std::string outMessage
The message returned by what()
InstrumentDefinitionError(const std::string &, std::string)
Constructor.
const std::string objectName
The name of the search object.
const char * what() const noexcept override
Overloaded reporting method.
InternetError(const std::string &message, const int &errorCode=0)
Constructor.
const int & errorCode() const
Writes out the range and limits.
int m_errorCode
The message reported by what()
std::string outMessage
The message returned by what()
Error when two numbers should be identical (or close)
std::string m_message
The message reported by what()
const char * what() const noexcept override
Overloaded reporting method.
MisMatch(const T &, const T &, const std::string &)
Constructor store two mismatched items.
const T Bval
container size
Exception for when an item is not found in a collection.
const char * what() const noexcept override
Writes out the range and limits.
NotFoundError(const std::string &, std::string)
Constructor.
std::string outMessage
The message returned by what()
const std::string objectName
The name of the search object.
NotImplementedError(const std::string &)
Constructor.
const char * what() const noexcept override
Writes out the range and limits.
const char * what() const noexcept override
Overloaded reporting method.
const std::string outMessage
The message returned by what()
NullPointerException(const std::string &place, const std::string &objectName)
Constructor.
const char * what() const noexcept override
Writes out the range and limits.
std::string outMessage
The message returned by what()
const std::string objectName
The name of the search object.
OpenGLError(const std::string &, std::string)
Constructor.
Records the filename, the description of failure and the line on which it happened.
ParseError(const std::string &desc, const std::string &fileName, const int &lineNumber)
Constructor.
const int m_lineNumber
Number of the line where the error occured.
const char * what() const noexcept override
std::string m_outMessage
The message returned by what()
The exception classes used by Mantid.
std::string to_string(const wide_integer< Bits, Signed > &n)