mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
mx::err::fileoerr Class Reference

mxException for errors on opening a file

Definition at line 269 of file mxException.hpp.

#include <mxException.hpp>

+ Inheritance diagram for mx::err::fileoerr:

Public Member Functions

 fileoerr (const std::string &esrc, const std::string &efile, const int &line, const std::string &expl)
 
 fileoerr (const std::string &esrc, const int &en, const std::string &efile, const int &line, const std::string &expl)
 
- Public Member Functions inherited from mx::err::mxException
 mxException () noexcept
 Default constructor. More...
 
 mxException (const mxException &e) noexcept
 Copy constructor. More...
 
 mxException (const std::string &esrc, const int &ec, const std::string &emnem, const std::string &efile, const int &line, const std::string &expl)
 Construct and fill in each of the values, except errno. More...
 
 mxException (const std::string &esrc, const int &ec, const std::string &emnem, const int &en, const std::string &efile, const int &line, const std::string &expl)
 Construct and fill in each of the values, including errno. More...
 
mxExceptionoperator= (const mxException &e) noexcept
 Assignment operator. More...
 
virtual ~mxException () throw ()
 Destructor. More...
 
virtual void build_what ()
 Build the what string. More...
 
virtual const char * what () const noexcept
 Return the details of the exception as a single string. More...
 

Additional Inherited Members

- Protected Attributes inherited from mx::err::mxException
char m_whatstr [4096]
 Contains the what() string. More...
 
std::string m_source {""}
 The source of the exception, such as stdlib or cfitisio or the function name. More...
 
int m_code {0}
 The mxlib error code. More...
 
std::string m_codeName {""}
 The name of the error code. More...
 
int m_errno {0}
 The errno error code (only used if non-zero) More...
 
std::string m_file {""}
 The source file where the exception originated. More...
 
int m_line {0}
 The line number of the file where the exception originated. More...
 
std::string m_explanation {""}
 The long explanation of the error. More...
 

Constructor & Destructor Documentation

◆ fileoerr() [1/2]

mx::err::fileoerr::fileoerr ( const std::string &  esrc,
const std::string &  efile,
const int &  line,
const std::string &  expl 
)
inline
Parameters
[in]esrcthe source of the exception, typically the class and function
[in]efilethe source file in which the exception occurred, normally __FILE__
[in]linethe line number where the exception was thrown
[in]explthe explanation for why the exception was thrown

Definition at line 272 of file mxException.hpp.

◆ fileoerr() [2/2]

mx::err::fileoerr::fileoerr ( const std::string &  esrc,
const int &  en,
const std::string &  efile,
const int &  line,
const std::string &  expl 
)
inline
Parameters
[in]esrcthe source of the exception, typically the class and function
[in]enthe value of errno
[in]efilethe source file in which the exception occurred, normally __FILE__
[in]linethe line number where the exception was thrown
[in]explthe explanation for why the exception was thrown

Definition at line 279 of file mxException.hpp.


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