owlps/owlps-positioning/posexcept.hh

84 lines
1.5 KiB
C++

#ifndef _OWLPS_POSITIONING_POSEXCEPT_HH_
#define _OWLPS_POSITIONING_POSEXCEPT_HH_
#include <exception>
#include <string>
class bad_direction: public std::exception
{
private:
char direction ;
public:
bad_direction(const char _direction) throw() ;
const char* what() const throw() ;
} ;
class element_not_found: public std::exception
{
private:
std::string explanation ;
public:
element_not_found(const std::string &_explanation) throw() ;
~element_not_found(void) throw() {}
const char* what(void) const throw() ;
} ;
class input_medium_type_unknown: public std::exception
{
private:
std::string medium_name ;
public:
input_medium_type_unknown(const std::string &_medium_name) throw() ;
~input_medium_type_unknown(void) throw() {}
const char* what(void) const throw() ;
} ;
class no_input_medium: public std::exception
{
public:
const char* what() const throw() ;
} ;
class null_input_medium: public std::exception
{
public:
const char* what() const throw() ;
} ;
class no_input_csv_file: public std::exception
{
public:
const char* what() const throw() ;
} ;
class no_log_csv_file: public std::exception
{
public:
const char* what() const throw() ;
} ;
class error_opening_input_file: public std::exception
{
private:
std::string file_name ;
public:
error_opening_input_file(const std::string &_file_name) throw() ;
~error_opening_input_file(void) throw() {}
const char* what(void) const throw() ;
} ;
#endif // _OWLPS_POSITIONING_POSEXCEPT_HH_