18 #ifndef IOEXCEPTIONS_H 19 #define IOEXCEPTIONS_H 25 #define STRINGIFY(x) #x 26 #define TOSTRING(x) STRINGIFY(x) 27 #define AT __FILE__ ":" TOSTRING(__LINE__) 41 IOException(
const std::string& message=
"IOException occured",
const std::string& position=
"");
43 virtual const char*
what()
const throw();
46 #if defined(__linux) && !defined(ANDROID) && !defined(__CYGWIN__) 47 std::string resolveSymbols(
char *symbols,
const unsigned int& ii,
bool& found_main)
const;
61 const std::string& position=
"") :
IOException(
"NotFound: " + filename, position){}
73 const std::string& position=
"") :
IOException(
"InvalidAccess: " + filename, position){}
85 const std::string& position=
"") :
IOException(
"InvalidName: " + filename, position){}
97 const std::string& position=
"") :
IOException(
"InvalidFormat: " + message, position){}
109 const std::string& position=
"") :
IOException(
"IndexOutOfBounds: " + message, position){}
121 const std::string& position=
"") :
IOException(
"ConversionFailed: " + message, position){}
133 const std::string& position=
"") :
IOException(
"InvalidArgument: " + message, position){}
145 const std::string& position=
"") :
IOException(
"UnknownValue: " + message, position){}
158 const std::string& position=
"") :
IOException(
"NoData: " + message, position){}
NotFoundException(const std::string &filename="", const std::string &position="")
Definition: IOExceptions.h:60
thrown when encountered an unexpected value (e.g. unknown name or key)
Definition: IOExceptions.h:142
AccessException(const std::string &filename="", const std::string &position="")
Definition: IOExceptions.h:72
InvalidArgumentException(const std::string &message="", const std::string &position="")
Definition: IOExceptions.h:132
virtual const char * what() const
Definition: IOExceptions.cc:140
thrown when a given filename/servername/... is not valid (e.g. "..", "." or empty) ...
Definition: IOExceptions.h:82
~IOException()
Definition: IOExceptions.h:42
IOException(const std::string &message="IOException occured", const std::string &position="")
Definition: IOExceptions.cc:111
UnknownValueException(const std::string &message="", const std::string &position="")
Definition: IOExceptions.h:144
thrown when no data is available
Definition: IOExceptions.h:154
std::string full_output
Definition: IOExceptions.h:49
std::string msg
Definition: IOExceptions.h:49
thrown when an unsuccessful attempt to convert data types/classes is made (e.g. attempt to convert a ...
Definition: IOExceptions.h:118
thrown when encountered an unexpected function's argument (e.g. bad index, bad or missing parameter n...
Definition: IOExceptions.h:130
ConversionFailedException(const std::string &message="", const std::string &position="")
Definition: IOExceptions.h:120
thrown when a there are insufficient rights to access a file/server/... in a certain way (e...
Definition: IOExceptions.h:70
IndexOutOfBoundsException(const std::string &message="", const std::string &position="")
Definition: IOExceptions.h:108
thrown when an index is out of bounds
Definition: IOExceptions.h:106
InvalidNameException(const std::string &filename="", const std::string &position="")
Definition: IOExceptions.h:84
thrown when a there is an unsuccessful attempt to locate a file/server/...
Definition: IOExceptions.h:58
NoDataException(const std::string &message="", const std::string &position="")
Definition: IOExceptions.h:157
The basic exception class adjusted for the needs of SLF software.
Definition: IOExceptions.h:39