28 #ifndef _util_misc_exception_h
29 #define _util_misc_exception_h
36 #if __cplusplus > 199711L
38 #define MPQC__NOEXCEPT noexcept
40 #define MPQC__NOEXCEPT throw()
49 const char *description_;
65 int line = 0) MPQC__NOEXCEPT;
75 const char *
description() const MPQC__NOEXCEPT {
return description_; }
78 const char *
file() const MPQC__NOEXCEPT {
return file_; }
81 int line() const MPQC__NOEXCEPT {
return line_; }
int line() const MPQC__NOEXCEPT
Returns the line number where the exception was created.
Definition: exception.h:81
This is a std::exception specialization that records information about where an exception took place.
Definition: exception.h:48
const char * file() const MPQC__NOEXCEPT
Returns the name of the file in which the exception was created.
Definition: exception.h:78
Exception(const char *description=0, const char *file=0, int line=0) MPQC__NOEXCEPT
Create an Exception.
const char * description() const MPQC__NOEXCEPT
Reimplementation of std::exception::what().
Definition: exception.h:75
Contains all MPQC code up to version 3.
Definition: mpqcin.h:14
Generated at Sun Jan 26 2020 23:24:01 for MPQC
3.0.0-alpha using the documentation package Doxygen
1.8.16.