diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-01-28 13:46:04 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-01-30 19:11:03 +0100 |
commit | 0364024781ffa709a1a86ae9c6638f71df0317ca (patch) | |
tree | 7fde4d205b81d4fb65a07736d95fb1a09d746022 /libqpdf/QPDFArgParser.cc | |
parent | 764feb0f8e0b7753c2d3efe644561220acbc771c (diff) | |
download | qpdf-0364024781ffa709a1a86ae9c6638f71df0317ca.tar.zst |
Use QPDFUsage exception for cli, json, and QPDFJob errors
Diffstat (limited to 'libqpdf/QPDFArgParser.cc')
-rw-r--r-- | libqpdf/QPDFArgParser.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libqpdf/QPDFArgParser.cc b/libqpdf/QPDFArgParser.cc index c423c7d3..4018d4e1 100644 --- a/libqpdf/QPDFArgParser.cc +++ b/libqpdf/QPDFArgParser.cc @@ -2,15 +2,11 @@ #include <qpdf/QUtil.hh> #include <qpdf/QIntC.hh> #include <qpdf/QTC.hh> +#include <qpdf/QPDFUsage.hh> #include <iostream> #include <cstring> #include <cstdlib> -QPDFArgParser::Usage::Usage(std::string const& msg) : - std::runtime_error(msg) -{ -} - QPDFArgParser::Members::Members( int argc, char* argv[], char const* progname_env) : @@ -424,7 +420,7 @@ QPDFArgParser::usage(std::string const& message) // This will cause bash to fall back to regular file completion. exit(0); } - throw Usage(message); + throw QPDFUsage(message); } void |