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

Records the filename and the description of failure. More...

#include <Exception.h>

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

Public Member Functions

 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 std::string fileName
 The name of the file relating to the error. More...
 
std::string outMessage
 The message returned by what() More...
 

Detailed Description

Records the filename and the description of failure.

Definition at line 98 of file Exception.h.

Constructor & Destructor Documentation

◆ FileError() [1/2]

Mantid::Kernel::Exception::FileError::FileError ( const std::string &  Desc,
std::string  FName 
)

Constructor.

Parameters
Desc:: Function description
FName:: Filename

Definition at line 19 of file Exception.cpp.

References fileName, and outMessage.

◆ FileError() [2/2]

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

Copy constructor.

Definition at line 25 of file Exception.cpp.

Member Function Documentation

◆ operator=()

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

Assignment operator.

◆ what()

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

Writes out the range and limits.

Returns
a char array of foramtted error information

Definition at line 30 of file Exception.cpp.

References outMessage.

Referenced by Mantid::Kernel::Exception::ParseError::ParseError().

Member Data Documentation

◆ fileName

const std::string Mantid::Kernel::Exception::FileError::fileName
private

The name of the file relating to the error.

Definition at line 101 of file Exception.h.

Referenced by FileError().

◆ outMessage

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

The message returned by what()

Definition at line 103 of file Exception.h.

Referenced by FileError(), and what().


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