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

Records the filename, the description of failure and the line on which it happened. More...

#include <Exception.h>

Inheritance diagram for Mantid::Kernel::Exception::ParseError:
Mantid::Kernel::Exception::FileError

Public Member Functions

ParseErroroperator= (const ParseError &A)
 Assignment operator. More...
 
 ParseError (const ParseError &A)
 Copy constructor. More...
 
 ParseError (const std::string &desc, const std::string &fileName, const int &lineNumber)
 Constructor. More...
 
const char * what () const noexcept override
 
- Public Member Functions inherited from Mantid::Kernel::Exception::FileError
 FileError (const FileError &A)
 Copy constructor. More...
 
 FileError (const std::string &Desc, std::string FName)
 Constructor. More...
 
FileErroroperator= (const FileError &A)
 Assignment operator. More...
 
const char * what () const noexcept override
 Writes out the range and limits. More...
 

Private Attributes

const int m_lineNumber
 Number of the line where the error occured. More...
 
std::string m_outMessage
 The message returned by what() More...
 

Detailed Description

Records the filename, the description of failure and the line on which it happened.

Definition at line 115 of file Exception.h.

Constructor & Destructor Documentation

◆ ParseError() [1/2]

Mantid::Kernel::Exception::ParseError::ParseError ( const std::string &  desc,
const std::string &  fileName,
const int &  lineNumber 
)

Constructor.

Parameters
desc:: Error description
fileName:: Filename where happened
lineNumber:: Number of the line where error happened

Definition at line 35 of file Exception.cpp.

References m_lineNumber, m_outMessage, and Mantid::Kernel::Exception::FileError::what().

◆ ParseError() [2/2]

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

Copy constructor.

Definition at line 42 of file Exception.cpp.

Member Function Documentation

◆ operator=()

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

Assignment operator.

◆ what()

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

Definition at line 44 of file Exception.cpp.

References m_outMessage.

Member Data Documentation

◆ m_lineNumber

const int Mantid::Kernel::Exception::ParseError::m_lineNumber
private

Number of the line where the error occured.

Definition at line 118 of file Exception.h.

Referenced by ParseError().

◆ m_outMessage

std::string Mantid::Kernel::Exception::ParseError::m_outMessage
private

The message returned by what()

Definition at line 120 of file Exception.h.

Referenced by ParseError(), and what().


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