cartobase 6.0.6
carto::io_error Class Reference

general IO error (should be specialized) More...

#include <cartobase/exception/ioexcept.h>

Inheritance diagram for carto::io_error:
Collaboration diagram for carto::io_error:

Public Member Functions

 io_error (const std::string &arg, const std::string &filename="")
 
virtual ~io_error () throw ()
 
virtual const char * what () const throw ()
 
std::string filename () const
 

Static Public Member Functions

static void launchErrnoExcept (const std::string &filename="")
 
static void keepExceptionPriority (std::exception &e, int &prio, int &type, std::string &message, int raiseprio=0)
 
static void launchExcept (int code, const std::string &msg, const std::string &defmsg="")
 
static void checkFatalIOErrno (const std::string &filename="")
 checks if errno is a disk full, access or quota error, then throw an exception if so.
 

Detailed Description

general IO error (should be specialized)

Definition at line 45 of file ioexcept.h.

Constructor & Destructor Documentation

◆ io_error()

carto::io_error::io_error ( const std::string & arg,
const std::string & filename = "" )

References filename().

◆ ~io_error()

virtual carto::io_error::~io_error ( )
throw ( )
virtual

Member Function Documentation

◆ checkFatalIOErrno()

static void carto::io_error::checkFatalIOErrno ( const std::string & filename = "")
static

checks if errno is a disk full, access or quota error, then throw an exception if so.

References filename().

◆ filename()

std::string carto::io_error::filename ( ) const
inline

Definition at line 51 of file ioexcept.h.

References filename().

Referenced by carto::bad_medium_error::bad_medium_error(), carto::bad_medium_error::bad_medium_error(), checkFatalIOErrno(), carto::corrupt_stream_error::corrupt_stream_error(), carto::corrupt_stream_error::corrupt_stream_error(), carto::datatype_format_error::datatype_format_error(), carto::datatype_format_error::datatype_format_error(), carto::disk_full_error::disk_full_error(), carto::disk_full_error::disk_full_error(), carto::eof_error::eof_error(), carto::eof_error::eof_error(), carto::file_not_found_error::file_not_found_error(), carto::file_not_found_error::file_not_found_error(), filename(), carto::format_error::format_error(), carto::format_error::format_error(), carto::format_mismatch_error::format_mismatch_error(), carto::format_mismatch_error::format_mismatch_error(), carto::invalid_format_error::invalid_format_error(), carto::invalid_format_error::invalid_format_error(), io_error(), carto::is_dir_error::is_dir_error(), carto::is_dir_error::is_dir_error(), launchErrnoExcept(), carto::no_dir_error::no_dir_error(), carto::no_dir_error::no_dir_error(), carto::not_open_error::not_open_error(), carto::not_open_error::not_open_error(), carto::open_error::open_error(), carto::permission_error::permission_error(), carto::permission_error::permission_error(), carto::quota_exceeded_error::quota_exceeded_error(), carto::quota_exceeded_error::quota_exceeded_error(), carto::read_write_error::read_write_error(), carto::stream_fail_error::stream_fail_error(), carto::stream_fail_error::stream_fail_error(), carto::stream_state_error::stream_state_error(), carto::syntax_check_error::syntax_check_error(), carto::syntax_check_error::syntax_check_error(), carto::too_many_descriptors_error::too_many_descriptors_error(), carto::too_many_descriptors_error::too_many_descriptors_error(), carto::wrong_format_error::wrong_format_error(), and carto::wrong_format_error::wrong_format_error().

◆ keepExceptionPriority()

static void carto::io_error::keepExceptionPriority ( std::exception & e,
int & prio,
int & type,
std::string & message,
int raiseprio = 0 )
static

◆ launchErrnoExcept()

static void carto::io_error::launchErrnoExcept ( const std::string & filename = "")
static

References filename().

◆ launchExcept()

static void carto::io_error::launchExcept ( int code,
const std::string & msg,
const std::string & defmsg = "" )
static

◆ what()

virtual const char * carto::io_error::what ( ) const
throw ( )
virtual

References what().

Referenced by what().


The documentation for this class was generated from the following file: