34#ifndef CARTOBASE_EXCEPTION_IOEXCEPT_H
35#define CARTOBASE_EXCEPTION_IOEXCEPT_H
50 virtual const
char*
what() const throw();
55 int & type, std::string & message,
58 const std::string & defmsg =
"" );
64 std::string _filename;
65 mutable std::string _formed_msg;
138 const std::string &
filename =
"" );
179 const std::string &
filename =
"" );
292 const std::string& token_arg,
293 const std::string& filename_arg,
301 const std::string& token_arg,
309 const std::string& filename_arg = std::string() )
317 static
std::
string init( const
std::
string& what_arg,
318 const
std::
string& token_arg,
319 const
std::
string& filename_arg,
321 static
std::
string init( const
std::
string& what_arg,
322 const
std::
string& token_arg,
325 const
std::
string _filename;
#define __deprecated__(msg)
bad_medium_error(const std::string &filename="")
virtual ~bad_medium_error()
bad_medium_error(const std::string &arg, const std::string &filename)
corrupt_stream_error(const std::string &filename="")
virtual ~corrupt_stream_error()
corrupt_stream_error(const std::string &arg, const std::string &filename)
disk_full_error(const std::string &filename="")
virtual ~disk_full_error()
disk_full_error(const std::string &arg, const std::string &filename)
eof_error(const std::string &filename="")
eof_error(const std::string &arg, const std::string &filename)
virtual ~file_not_found_error()
file_not_found_error(const std::string &filename="")
file_not_found_error(const std::string &arg, const std::string &filename)
static void keepExceptionPriority(std::exception &e, int &prio, int &type, std::string &message, int raiseprio=0)
static void checkFatalIOErrno(const std::string &filename="")
checks if errno is a disk full, access or quota error, then throw an exception if so.
static void launchErrnoExcept(const std::string &filename="")
static void launchExcept(int code, const std::string &msg, const std::string &defmsg="")
virtual const char * what() const
std::string filename() const
io_error(const std::string &arg, const std::string &filename="")
is_dir_error(const std::string &filename="")
is_dir_error(const std::string &arg, const std::string &filename)
no_dir_error(const std::string &filename="")
no_dir_error(const std::string &arg, const std::string &filename)
not_open_error(const std::string &arg, const std::string &filename)
virtual ~not_open_error()
not_open_error(const std::string &filename="")
open_error(const std::string &arg, const std::string &filename="")
parse_error(const std::string &what_arg, int line_arg, const std::string &filename_arg=std::string()) __attribute__((__deprecated__))
parse_error(const std::string &what_arg, const std::string &token_arg, const std::string &filename_arg, int line_arg)
Only use this version or the next one.
parse_error(const std::string &what_arg, const std::string &token_arg, int line_arg)
Only use this version or the previous one.
permission_error(const std::string &filename="")
virtual ~permission_error()
permission_error(const std::string &arg, const std::string &filename)
quota_exceeded_error(const std::string &filename="")
quota_exceeded_error(const std::string &arg, const std::string &filename)
virtual ~quota_exceeded_error()
virtual ~read_write_error()
read_write_error(const std::string &arg, const std::string &filename="")
virtual ~stream_fail_error()
stream_fail_error(const std::string &filename="")
stream_fail_error(const std::string &arg, const std::string &filename)
virtual ~stream_state_error()
stream_state_error(const std::string &arg, const std::string &filename="")
virtual ~syntax_check_error()
syntax_check_error(const std::string &filename="")
syntax_check_error(const std::string &arg, const std::string &filename)
too_many_descriptors_error(const std::string &filename="")
virtual ~too_many_descriptors_error()
too_many_descriptors_error(const std::string &arg, const std::string &filename)