ProSHADE
0.7.6.6 (JUL 2022)
Protein Shape Detection
ProSHADE_exceptions.hpp
Go to the documentation of this file.
1
23
//==================================================== ProSHADE
24
#include "
ProSHADE_precomputedValues.hpp
"
25
26
//==================================================== Overinclusion protection
27
#ifndef PROSHADE_EXCEPTIONS
28
#define PROSHADE_EXCEPTIONS
29
36
class
ProSHADE_exception
:
public
std::runtime_error
37
{
38
std::string errc;
39
std::string file;
40
std::string func;
41
std::string info;
42
int
long
line;
43
44
public
:
45
ProSHADE_exception
(
const
char
* msg, std::string errc_, std::string file_,
unsigned
int
line_, std::string func_, std::string info_): std::runtime_error ( msg )
46
{
47
this->errc = errc_;
48
this->file = file_;
49
this->line = line_;
50
this->func = func_;
51
this->info = info_;
52
}
53
54
virtual
std::string
get_errc
(
void
);
55
virtual
std::string
get_file
(
void
);
56
virtual
int
long
get_line
(
void
);
57
virtual
std::string
get_func
(
void
);
58
virtual
std::string
get_info
(
void
);
59
};
60
61
#endif
ProSHADE_exception
This class is the representation of ProSHADE exception.
Definition:
ProSHADE_exceptions.hpp:37
ProSHADE_exception::get_errc
virtual std::string get_errc(void)
This function returns the exception error code.
Definition:
ProSHADE_exceptions.cpp:29
ProSHADE_exception::get_info
virtual std::string get_info(void)
This function returns the exception description.
Definition:
ProSHADE_exceptions.cpp:53
ProSHADE_precomputedValues.hpp
This header file contains the pre-computed values in classes that would take too long to obtain in ru...
ProSHADE_exception::get_func
virtual std::string get_func(void)
This function returns the exception causing function name.
Definition:
ProSHADE_exceptions.cpp:47
ProSHADE_exception::get_line
virtual int long get_line(void)
This function returns the exception location line.
Definition:
ProSHADE_exceptions.cpp:41
ProSHADE_exception::get_file
virtual std::string get_file(void)
This function returns the exception location file name.
Definition:
ProSHADE_exceptions.cpp:35
src
proshade
ProSHADE_exceptions.hpp
Generated by
1.8.18