Psi4
Public Member Functions | List of all members
psi::SystemError Class Reference

#include <exception.h>

Inheritance diagram for psi::SystemError:
psi::PsiException

Public Member Functions

 SystemError (int eno, const char *file, int line) noexcept
 
virtual ~SystemError () noexcept
 
- Public Member Functions inherited from psi::PsiException
 PsiException (std::string message, const char *file, int line) noexcept
 
 PsiException (const PsiException &copy) noexcept
 
virtual ~PsiException () noexcept
 
PsiExceptionoperator= (const PsiException &other)
 
const char * what () const noexcept
 
const char * file () const noexcept
 
const char * location () const noexcept
 
int line () const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from psi::PsiException
void rewrite_msg (std::string msg) noexcept
 

Detailed Description

Exception for system errors. Those that report via errno

Constructor & Destructor Documentation

psi::SystemError::SystemError ( int  eno,
const char *  file,
int  line 
)
noexcept

Constructor

Parameters
enoThe errno that will be printed by exception
fileThe file that threw the exception (use FILE macro)
lineThe line number that threw the exception (use LINE macro)
psi::SystemError::~SystemError ( )
virtualnoexcept

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