/freebsd/contrib/kyua/utils/cmdline/ |
H A D | exceptions.hpp | 51 class usage_error : public error { class 53 explicit usage_error(const std::string&); 54 ~usage_error(void) throw(); 59 class missing_option_argument_error : public usage_error { 72 class option_argument_value_error : public usage_error { 93 class unknown_option_error : public usage_error {
|
H A D | exceptions.cpp | 61 cmdline::usage_error::usage_error(const std::string& message) : in usage_error() function in cmdline::usage_error 68 cmdline::usage_error::~usage_error(void) throw() in ~usage_error() 79 usage_error(F("Missing required argument for option %s") % option_), in missing_option_argument_error() 112 usage_error(F("Invalid argument '%s' for option %s: %s") % argument_ % in option_argument_value_error() 155 usage_error(F("Unknown option %s") % option_), in unknown_option_error()
|
H A D | base_command_test.cpp | 171 ATF_REQUIRE_THROW_RE(cmdline::usage_error, "Unknown.*foo-bar", in ATF_TEST_CASE_BODY() 182 ATF_REQUIRE_THROW_RE(cmdline::usage_error, "Not enough arguments", in ATF_TEST_CASE_BODY() 189 ATF_REQUIRE_THROW_RE(cmdline::usage_error, "Too many arguments", in ATF_TEST_CASE_BODY() 232 ATF_REQUIRE_THROW_RE(cmdline::usage_error, "Unknown.*foo-bar", in ATF_TEST_CASE_BODY() 276 ATF_REQUIRE_THROW_RE(cmdline::usage_error, "Unknown.*foo-bar", in ATF_TEST_CASE_BODY()
|
H A D | base_command.cpp | 110 throw usage_error("Not enough arguments"); in parse_cmdline() 112 throw usage_error("Too many arguments"); in parse_cmdline()
|
H A D | base_command.ipp | 90 /// \throw usage_error If args is invalid (i.e. if the options are mispecified
|
/freebsd/contrib/atf/atf-c++/detail/ |
H A D | application.cpp | 61 impl::usage_error::usage_error(const char *fmt, ...) in usage_error() function in impl::usage_error 72 impl::usage_error::~usage_error(void) in ~usage_error() 78 impl::usage_error::what(void) in what() 178 throw usage_error("Option -%c requires an argument.", in process_options() 182 throw usage_error("Unknown option -%c.", ::optopt); in process_options() 232 } catch (const usage_error& e) { in run()
|
H A D | application.hpp | 41 class usage_error : public std::runtime_error { class 45 usage_error(const char*, ...) throw(); 46 ~usage_error(void) throw();
|
/freebsd/contrib/atf/atf-sh/ |
H A D | atf-check.cpp | 206 throw atf::application::usage_error("Invalid exit code for -s option; " in parse_exit_code() 252 throw atf::application::usage_error("Invalid signal name or number " in parse_signal() 276 throw atf::application::usage_error("Cannot negate eq checker"); in parse_status_check_arg() 287 throw atf::application::usage_error("Cannot negate ignore checker"); in parse_status_check_arg() 294 throw atf::application::usage_error("Cannot negate ne checker"); in parse_status_check_arg() 304 throw atf::application::usage_error("Invalid status checker"); in parse_status_check_arg() 325 throw atf::application::usage_error("Cannot negate ignore checker"); in parse_output_check_arg() 333 throw atf::application::usage_error("Cannot negate save checker"); in parse_output_check_arg() 336 throw atf::application::usage_error("Invalid output checker"); in parse_output_check_arg() 357 throw atf::application::usage_error("Bogus timeout in seconds"); in parse_repeat_check_arg() [all …]
|
H A D | atf-sh.cpp | 163 throw atf::application::usage_error("No test program provided"); in main()
|
/freebsd/contrib/kyua/cli/ |
H A D | main.cpp | 140 } catch (const cmdline::usage_error& e) { in run_subcommand() 141 throw std::pair< std::string, cmdline::usage_error >( in run_subcommand() 214 throw cmdline::usage_error(e.what()); in safe_main() 218 throw cmdline::usage_error("No command provided"); in safe_main() 226 throw cmdline::usage_error(F("Unknown command '%s'") % cmdname); in safe_main() 299 } catch (const std::pair< std::string, cmdline::usage_error >& e) { in main() 307 } catch (const cmdline::usage_error& e) { in main()
|
H A D | cmd_debug.cpp | 80 throw cmdline::usage_error(F("'%s' is not a test case identifier " in run()
|
H A D | common.cpp | 229 throw cmdline::usage_error(F("Invalid value passed to --%s") % in results_file_create() 258 throw cmdline::usage_error(F("Invalid value passed to --%s") % in results_file_open()
|
H A D | cmd_help_test.cpp | 310 ATF_REQUIRE_THROW_RE(cmdline::usage_error, "command foobar.*not exist", in ATF_TEST_CASE_BODY() 332 ATF_REQUIRE_THROW_RE(cmdline::usage_error, "Too many arguments", in ATF_TEST_CASE_BODY()
|
H A D | cmd_about.cpp | 155 throw cmdline::usage_error(F("Invalid about topic '%s'") % topic); in run()
|
H A D | cmd_about_test.cpp | 272 ATF_REQUIRE_THROW_RE(cmdline::usage_error, "Too many arguments", in ATF_TEST_CASE_BODY() 288 ATF_REQUIRE_THROW_RE(cmdline::usage_error, "Invalid about topic 'foo'", in ATF_TEST_CASE_BODY()
|
H A D | cmd_help.cpp | 243 throw cmdline::usage_error(F("The command %s does not exist") % in run()
|
/freebsd/contrib/openpam/ |
H A D | test-driver | 34 usage_error () function 72 -*) usage_error "invalid option: '$1'";; 83 usage_error "the following mandatory options are missing:$missing_opts" 87 usage_error "missing argument"
|
/freebsd/contrib/ntp/sntp/libevent/build-aux/ |
H A D | test-driver | 34 usage_error () function 70 -*) usage_error "invalid option: '$1'";; 81 usage_error "the following mandatory options are missing:$missing_opts" 85 usage_error "missing argument"
|
/freebsd/contrib/libevent/build-aux/ |
H A D | test-driver | 34 usage_error () function 70 -*) usage_error "invalid option: '$1'";; 81 usage_error "the following mandatory options are missing:$missing_opts" 85 usage_error "missing argument"
|
/freebsd/contrib/atf/atf-c/detail/ |
H A D | tp_main.c | 214 err = usage_error("-v requires an argument of the form var=value"); in parse_vflag() 313 err = usage_error("Invalid test case part `%s'", delim); in handle_tcarg() 356 err = usage_error("Option -%c requires an argument.", optopt); in process_params() 361 err = usage_error("Unknown option -%c.", optopt); in process_params() 377 err = usage_error("Cannot provide test case names with -l"); in process_params() 380 err = usage_error("Must provide a test case name"); in process_params() 384 err = usage_error("Cannot provide more than one test case " in process_params() 490 err = usage_error("Unknown test case `%s'", p->m_tcname); in run_tc()
|
/freebsd/contrib/atf/atf-c++/ |
H A D | tests.cpp | 78 using atf::application::usage_error; 443 throw usage_error("Cannot find the test program in the source " in handle_srcdir() 503 throw usage_error("Unknown test case `%s'", name.c_str()); in find_tc() 521 throw usage_error("Invalid test case part `%s'", partname.c_str()); in process_tcarg() 590 throw usage_error("Option -%c requires an argument.", ::optopt); in safe_main() 595 throw usage_error("Unknown option -%c.", ::optopt); in safe_main() 615 throw usage_error("Cannot provide test case names with -l"); in safe_main() 621 throw usage_error("Must provide a test case name"); in safe_main() 623 throw usage_error("Cannot provide more than one test case name"); in safe_main() 652 } catch (const usage_error& e) { in run_tp()
|