TF++, Miscellaneous classes and modules in C++:
exception.cc
Go to the documentation of this file.
1
34
#define TF_EXCEPTION_CC_VERSION \
35
"TF_EXCEPTION_CC V1.0"
36
37
#include <iostream>
38
#include <tfxx/fs.h>
39
#include <tfxx/error.h>
40
#include <cstring>
41
42
namespace
tfxx
{
43
44
namespace
error {
45
46
FSException::FSException
(
const
char
* message,
47
const
char
* file,
48
const
int
& line,
49
const
int
& en):
50
TBase
(message, file, line,
"file system utility returned error"
),
51
Merrno(en)
52
{
53
if
(this->
report_on_construct_is_true
()) { this->
fs_report
(); }
54
}
55
56
void
FSException::report
()
const
57
{
58
TBase::report
();
59
this->
fs_report
();
60
}
61
62
void
FSException::fs_report
()
const
63
{
64
std::cerr <<
" error value: "
<<
Merrno
<< std::endl;
65
std::cerr <<
" "
<< strerror(
Merrno
) << std::endl;
66
}
67
68
}
// namespace error
69
70
}
71
72
/* ----- END OF exception.cc ----- */
tfxx::error::FSException::report
virtual void report() const
Screen report.
Definition:
exception.cc:56
tfxx::error::Exception::report_on_construct_is_true
bool report_on_construct_is_true() const
Definition:
error.h:108
tfxx::error::FSException::FSException
FSException(const char *message, const char *file, const int &line, const int &en)
Create with message, failed assertion, and code position.
Definition:
exception.cc:46
tfxx::error::FSException::fs_report
void fs_report() const
my report
Definition:
exception.cc:62
tfxx::error::Exception
Base class for exceptions.
Definition:
error.h:78
tfxx::error::Exception::report
virtual void report() const
Screen report.
Definition:
error.cc:108
tfxx
Namespace containing all code of library libtfxx.
Definition:
blitzfortranio.cc:40
tfxx::error::FSException::Merrno
int Merrno
error number
Definition:
fs.h:92
fs
exception.cc
Generated on Mon Aug 21 2023 17:36:06 for TF++, Miscellaneous classes and modules in C++: by
1.8.14