Molecular Dynamics Simulation  1.0
Public Member Functions | Private Attributes | List of all members
FileReader::FileFormatException Class Reference

Exception to be thrown when the file format is invalid. More...

#include <FileReader.h>

Inheritance diagram for FileReader::FileFormatException:
Inheritance graph
Collaboration diagram for FileReader::FileFormatException:
Collaboration graph

Public Member Functions

 FileFormatException (std::string message)
 
const char * what () const noexcept override
 

Private Attributes

std::string message_
 

Detailed Description

Exception to be thrown when the file format is invalid.

Definition at line 31 of file FileReader.h.

Constructor & Destructor Documentation

◆ FileFormatException()

FileReader::FileFormatException::FileFormatException ( std::string  message)
inlineexplicit

Definition at line 33 of file FileReader.h.

33 : message_(std::move(message)) {}

Member Function Documentation

◆ what()

const char* FileReader::FileFormatException::what ( ) const
inlineoverridenoexcept

Definition at line 35 of file FileReader.h.

35 { return message_.c_str(); }

Member Data Documentation

◆ message_

std::string FileReader::FileFormatException::message_
private

Definition at line 38 of file FileReader.h.


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