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

Exception thrown when error occurs accessing an internet resource. More...

#include <Exception.h>

Inheritance diagram for Mantid::Kernel::Exception::InternetError:

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...
 

Detailed Description

Exception thrown when error occurs accessing an internet resource.

Author
Nick Draper, Tessella
Date
13/11/2013

Definition at line 321 of file Exception.h.

Constructor & Destructor Documentation

◆ InternetError()

Mantid::Kernel::Exception::InternetError::InternetError ( const std::string &  message,
const int &  errorCode = 0 
)

Constructor.

Parameters
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.

Member Function Documentation

◆ errorCode()

const int & Mantid::Kernel::Exception::InternetError::errorCode ( ) const

◆ what()

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

Member Data Documentation

◆ m_errorCode

int Mantid::Kernel::Exception::InternetError::m_errorCode
private

The message reported by what()

Definition at line 325 of file Exception.h.

Referenced by errorCode(), and InternetError().

◆ outMessage

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

The message returned by what()

Definition at line 324 of file Exception.h.

Referenced by InternetError(), and what().


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