34 #ifndef CARTOBASE_EXCEPTION_IOEXCEPT_H 35 #define CARTOBASE_EXCEPTION_IOEXCEPT_H 50 virtual const char*
what()
const throw();
51 std::string
filename()
const {
return _filename; }
55 int & type, std::string & message,
57 static void launchExcept(
int code,
const std::string & msg,
58 const std::string & defmsg =
"" );
61 std::string _filename;
62 mutable std::string _formed_msg;
135 const std::string &
filename =
"" );
176 const std::string &
filename =
"" );
186 eof_error(
const std::string & filename =
"" );
289 const std::string& token_arg,
290 const std::string& filename_arg,
298 const std::string& token_arg,
305 parse_error(
const std::string& what_arg,
int line_arg,
306 const std::string& filename_arg = std::string() )
314 static std::string init(
const std::string& what_arg,
315 const std::string& token_arg,
316 const std::string& filename_arg,
318 static std::string init(
const std::string& what_arg,
319 const std::string& token_arg,
322 const std::string _filename;
#define __deprecated__(msg)
static void keepExceptionPriority(std::exception &e, int &prio, int &type, std::string &message, int raiseprio=0)
read or write permission denied
write in a non-existing directory (more precise than file_not_found_error )
general IO error (should be specialized)
static void launchErrnoExcept(const std::string &filename="")
corrupt data: not understood by current format
file not found: trying to read an non-existing file, or write in a non-existing directory ...
disk full or quota exceeded (specialize for quota)
open as a file something which is a directory
stream state flags errors
static void launchExcept(int code, const std::string &msg, const std::string &defmsg="")
open failed (read or write), generally specialized
read / write failed (bad medium, disk full, quota exceeded...).
io_error(const std::string &arg, const std::string &filename="")
virtual const char * what() const
std::string filename() const