2010-02-11 17:24:21 +01:00
|
|
|
#include "posexcept.hh"
|
|
|
|
|
|
|
|
using namespace std ;
|
|
|
|
|
|
|
|
|
2010-02-11 18:33:45 +01:00
|
|
|
element_not_found::
|
|
|
|
element_not_found(const string &_explanation) throw():
|
|
|
|
explanation(_explanation) {}
|
|
|
|
|
|
|
|
|
|
|
|
const char* element_not_found::what() const throw()
|
|
|
|
{
|
|
|
|
string message = "Element not found in collection: " + explanation ;
|
|
|
|
return message.c_str() ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-02-11 17:24:21 +01:00
|
|
|
/**
|
|
|
|
* @param _medium_name The medium that is unknown
|
|
|
|
*/
|
|
|
|
input_medium_type_unknown::
|
2010-02-11 18:33:45 +01:00
|
|
|
input_medium_type_unknown(const string &_medium_name) throw():
|
|
|
|
medium_name(_medium_name) {}
|
2010-02-11 17:24:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
const char* input_medium_type_unknown::what() const throw()
|
|
|
|
{
|
|
|
|
string message = "The specified input medium « "+ medium_name +
|
|
|
|
" » is unknown!" ;
|
|
|
|
return message.c_str() ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const char* no_input_medium::what() const throw()
|
|
|
|
{
|
|
|
|
return "No input medium specified in configuration!" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const char* null_input_medium::what() const throw()
|
|
|
|
{
|
|
|
|
return "The input medium is not initialised!" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const char* no_input_csv_file::what() const throw()
|
|
|
|
{
|
|
|
|
return "No input CSV file specified in the configuration!" ;
|
|
|
|
}
|
2010-02-11 18:33:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
error_opening_input_file::
|
|
|
|
error_opening_input_file(const string &_file_name) throw():
|
|
|
|
file_name(_file_name) {}
|
|
|
|
|
|
|
|
|
|
|
|
const char* error_opening_input_file::what() const throw()
|
|
|
|
{
|
|
|
|
string message = "Error opening input file « " +
|
|
|
|
file_name + " »!" ;
|
|
|
|
return message.c_str() ;
|
|
|
|
}
|