2010-02-11 17:24:21 +01:00
|
|
|
#ifndef _OWLPS_POSITIONING_POSEXCEPT_HH_
|
|
|
|
#define _OWLPS_POSITIONING_POSEXCEPT_HH_
|
|
|
|
|
|
|
|
#include <exception>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
2010-03-04 11:59:17 +01:00
|
|
|
|
2010-03-05 10:57:45 +01:00
|
|
|
/// Super-class of all exceptions defined in OWLPS-Positioning
|
|
|
|
class posexcept: public std::exception {} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* *** Other exceptions *** */
|
|
|
|
|
|
|
|
|
|
|
|
class bad_direction: public posexcept
|
2010-02-18 12:23:05 +01:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
char direction ;
|
|
|
|
|
|
|
|
public:
|
|
|
|
bad_direction(const char _direction) throw() ;
|
|
|
|
const char* what() const throw() ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2010-03-05 10:57:45 +01:00
|
|
|
class element_not_found: public posexcept
|
2010-02-11 18:33:45 +01:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::string explanation ;
|
|
|
|
|
|
|
|
public:
|
|
|
|
element_not_found(const std::string &_explanation) throw() ;
|
|
|
|
~element_not_found(void) throw() {}
|
|
|
|
const char* what(void) const throw() ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2010-03-04 11:59:17 +01:00
|
|
|
|
|
|
|
/* *** Input *** */
|
|
|
|
|
|
|
|
|
2010-03-05 10:57:45 +01:00
|
|
|
class input_medium_type_unknown: public posexcept
|
2010-02-11 17:24:21 +01:00
|
|
|
{
|
|
|
|
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() ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2010-03-05 10:57:45 +01:00
|
|
|
class no_input_medium: public posexcept
|
2010-02-11 17:24:21 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
const char* what() const throw() ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2010-03-05 10:57:45 +01:00
|
|
|
class null_input_medium: public posexcept
|
2010-02-11 17:24:21 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
const char* what() const throw() ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2010-03-05 10:57:45 +01:00
|
|
|
class no_input_csv_file: public posexcept
|
2010-02-11 17:24:21 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
const char* what() const throw() ;
|
|
|
|
} ;
|
|
|
|
|
2010-02-11 18:33:45 +01:00
|
|
|
|
2010-03-05 10:57:45 +01:00
|
|
|
class no_log_csv_file: public posexcept
|
2010-02-16 16:19:39 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
const char* what() const throw() ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2010-03-05 10:57:45 +01:00
|
|
|
class error_opening_input_file: public posexcept
|
2010-02-11 18:33:45 +01:00
|
|
|
{
|
|
|
|
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() ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2010-03-05 10:57:45 +01:00
|
|
|
|
2010-03-04 11:59:17 +01:00
|
|
|
/* *** Output *** */
|
|
|
|
|
|
|
|
|
2010-03-05 10:57:45 +01:00
|
|
|
class output_medium_type_unknown: public posexcept
|
2010-03-04 11:59:17 +01:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::string medium_name ;
|
|
|
|
|
|
|
|
public:
|
|
|
|
output_medium_type_unknown(const std::string &_medium_name) throw() ;
|
|
|
|
~output_medium_type_unknown(void) throw() {}
|
|
|
|
const char* what(void) const throw() ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2010-03-08 17:36:16 +01:00
|
|
|
class no_output_csv_file: public posexcept
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
const char* what() const throw() ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2010-03-04 11:59:17 +01:00
|
|
|
|
2010-03-04 17:51:44 +01:00
|
|
|
/* *** Algorithms *** */
|
|
|
|
|
|
|
|
|
2010-03-05 10:57:45 +01:00
|
|
|
class no_positioning_algorithm: public posexcept
|
2010-03-04 17:51:44 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
const char* what() const throw() ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2010-03-05 10:57:45 +01:00
|
|
|
class positioning_algorithm_unknown: public posexcept
|
2010-03-04 17:51:44 +01:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
std::string algo_name ;
|
|
|
|
|
|
|
|
public:
|
|
|
|
positioning_algorithm_unknown(const std::string &_algo_name) throw() ;
|
|
|
|
~positioning_algorithm_unknown(void) throw() {}
|
|
|
|
const char* what(void) const throw() ;
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-11 17:24:21 +01:00
|
|
|
#endif // _OWLPS_POSITIONING_POSEXCEPT_HH_
|