Пример #1
0
 void notify_about_parameters_redundancy( size_t   inputed_parameters_quantity
                                          , size_t registered_parameters_quantity ) const {
     o_stream what_happened;
     what_happened << lib_prefix()
                   << "You inputs " << inputed_parameters_quantity << " parameters, "
                   << "but only " << registered_parameters_quantity << " registered!";
     throw std::runtime_error( what_happened.str() );
 }
Пример #2
0
 void notify_about_missing_of_parameter_with_serial_number( const std::string& inputed_parameter
                                                            , size_t serial_number ) const {
     o_stream what_happened;
     what_happened << lib_prefix()
                   << "You passed an unknown parameter '" << inputed_parameter << "' "
                   << "with order number " << serial_number << ", "
                   << "but there is no parameter expected at that position!";
     throw std::runtime_error( what_happened.str() );
 }
 void notify_about_missing_of_parameter_with_serial_number( const std::string& inputed_parameter
                                                            , size_t serial_number ) const {
     o_stream what_happened;
     what_happened << lib_prefix() 
                   << "You inputed unnamed parameter '" << inputed_parameter << "' "
                   << "with order number " << serial_number << ", "
                   << "but there is no parameter with such order number!";
     throw std::runtime_error( what_happened.str() );
 }
Пример #4
0
 void notify_about_parameters_absence() const {
     const std::string what_happened = lib_prefix() + "You inputs some parameter(s), but no one registered!";
     throw std::runtime_error( what_happened );
 }
Пример #5
0
 void notify_about_name_value_separator_repetition_in( const std::string& inputed_parameter ) const {
     const std::string what_happened = lib_prefix()
                                       + "Name-value separator repetition detected in parameter '"
                                       + inputed_parameter + "'!";
 throw std::runtime_error( what_happened );
 }