18 #ifndef IOEXCEPTIONS_H
19 #define IOEXCEPTIONS_H
27 #define STRINGIFY(x) #x
28 #define TOSTRING(x) STRINGIFY(x)
29 #define AT __FILE__ ":" TOSTRING(__LINE__)
43 IOException(
const std::string& message=
"IOException occured",
const std::string& position=
"");
45 virtual const char* what()
const throw();
48 #if defined(__linux) && !defined(ANDROID) && !defined(__CYGWIN__)
49 std::string resolveSymbols(
char *symbols,
const unsigned int& ii,
bool& found_main)
const;
51 std::string
msg, full_output;
63 const std::string& position=
"") :
IOException(
"NotFound: " + filename, position){}
75 const std::string& position=
"") :
IOException(
"InvalidAccess: " + filename, position){}
87 const std::string& position=
"") :
IOException(
"InvalidName: " + filename, position){}
99 const std::string& position=
"") :
IOException(
"InvalidFormat: " + message, position){}
111 const std::string& position=
"") :
IOException(
"IndexOutOfBounds: " + message, position){}
123 const std::string& position=
"") :
IOException(
"ConversionFailed: " + message, position){}
135 const std::string& position=
"") :
IOException(
"InvalidArgument: " + message, position){}
147 const std::string& position=
"") :
IOException(
"UnknownValue: " + message, position){}
160 const std::string& position=
"") :
IOException(
"NoData: " + message, position){}
NotFoundException(const std::string &filename="", const std::string &position="")
Definition: IOExceptions.h:62
thrown when encountered an unexpected value (e.g. unknown name or key)
Definition: IOExceptions.h:144
AccessException(const std::string &filename="", const std::string &position="")
Definition: IOExceptions.h:74
InvalidArgumentException(const std::string &message="", const std::string &position="")
Definition: IOExceptions.h:134
#define MIO_API
Definition: exports.h:49
thrown when a given filename/servername/... is not valid (e.g. "..", "." or empty) ...
Definition: IOExceptions.h:84
~IOException()
Definition: IOExceptions.h:44
UnknownValueException(const std::string &message="", const std::string &position="")
Definition: IOExceptions.h:146
thrown when no data is available
Definition: IOExceptions.h:156
std::string msg
Definition: IOExceptions.h:51
thrown when an unsuccessful to convert data types/classes is made (e.g. attempt to convert a literal ...
Definition: IOExceptions.h:120
thrown when encountered an unexpected function's argument (e.g. bad index, bad or missing parameter n...
Definition: IOExceptions.h:132
ConversionFailedException(const std::string &message="", const std::string &position="")
Definition: IOExceptions.h:122
thrown when a there are insufficient rights to access a file/server/... in a certain way (e...
Definition: IOExceptions.h:72
IndexOutOfBoundsException(const std::string &message="", const std::string &position="")
Definition: IOExceptions.h:110
thrown when an index is out of bounds
Definition: IOExceptions.h:108
InvalidNameException(const std::string &filename="", const std::string &position="")
Definition: IOExceptions.h:86
thrown when a there is an unsuccessful attempt to locate a file/server/...
Definition: IOExceptions.h:60
NoDataException(const std::string &message="", const std::string &position="")
Definition: IOExceptions.h:159
The basic exception class adjusted for the needs of SLF software.
Definition: IOExceptions.h:41