Mantid
|
Exception thrown when error occurs accessing an internet resource. More...
#include <Exception.h>
Public Member Functions | |
const int & | errorCode () const |
Writes out the range and limits. More... | |
InternetError (const std::string &message, const int &errorCode=0) | |
Constructor. More... | |
const char * | what () const noexcept override |
Overloaded reporting method. More... | |
Private Attributes | |
int | m_errorCode |
The message reported by what() More... | |
std::string | outMessage |
The message returned by what() More... | |
Exception thrown when error occurs accessing an internet resource.
Definition at line 321 of file Exception.h.
Mantid::Kernel::Exception::InternetError::InternetError | ( | const std::string & | message, |
const int & | errorCode = 0 |
||
) |
Constructor.
message | :: The error message |
errorCode | :: The HTTP error code if available |
Definition at line 296 of file Exception.cpp.
References errorCode(), m_errorCode, and outMessage.
const int & Mantid::Kernel::Exception::InternetError::errorCode | ( | ) | const |
Writes out the range and limits.
Definition at line 317 of file Exception.cpp.
References m_errorCode.
Referenced by Mantid::DataHandling::CheckMantidVersion::exec(), InternetError(), Mantid::DataHandling::DownloadInstrument::processRepository(), Mantid::Kernel::ErrorReporter::sendErrorReport(), Mantid::Kernel::ErrorReporter::sendReport(), and Mantid::Kernel::UsageServiceImpl::sendReport().
|
overridenoexcept |
Overloaded reporting method.
Writes out the range and limits.
Definition at line 311 of file Exception.cpp.
References outMessage.
Referenced by Mantid::DataHandling::CheckMantidVersion::exec(), Mantid::DataHandling::DownloadInstrument::exec(), Mantid::Kernel::ErrorReporter::sendErrorReport(), Mantid::Kernel::ErrorReporter::sendReport(), Mantid::Kernel::UsageServiceImpl::sendReport(), and Mantid::DataHandling::ISISDataArchive::sendRequest().
|
private |
The message reported by what()
Definition at line 325 of file Exception.h.
Referenced by errorCode(), and InternetError().
|
private |
The message returned by what()
Definition at line 324 of file Exception.h.
Referenced by InternetError(), and what().