| 1 | #cxx . . $ `<file>/misc/parseerror.cpp`/include "./parseerror.h"cxx . . $ `<file>/misc/parseerror.h`/ |
| 2 | |
| 3 | #include "../io/ansiescapecodes.h"cxx . . $ `<file>/io/ansiescapecodes.h`/ |
| 4 | |
| 5 | #include <iostream> |
| 6 | |
| 7 | namespace CppUtilitiescxx . . $ CppUtilities/ { |
| 8 | |
| 9 | /*! |
| 10 | * \class ParseError |
| 11 | * \brief The ParseError class is thrown by an ArgumentParser when a parsing error occurs. |
| 12 | * \remarks The class might be used in other parsers, too. |
| 13 | * \sa ArgumentParser |
| 14 | */ |
| 15 | |
| 16 | /*! |
| 17 | * \brief Destroys the ParseError. |
| 18 | */ |
| 19 | ParseErrorcxx . . $ CppUtilities/ParseError#::~cxx . . $ CppUtilities/ParseError#`~ParseError`(ced63f7c635d850d).ParseErrorcxx . . $ CppUtilities/ParseError#() noexcept |
| 20 | { |
| 21 | } |
| 22 | |
| 23 | /*! |
| 24 | * \brief Prints an error message "Unable to parse arguments: ..." for the specified \a failure. |
| 25 | */ |
| 26 | stdcxx . . $ std/::ostreamcxx . . $ std/ostream# &operatorcxx . . $ CppUtilities/`operator<<`(3b9e0a4d94d289c5).<<(stdcxx . . $ std/::ostreamcxx . . $ std/ostream# &o, const ParseErrorcxx . . $ CppUtilities/ParseError# &failure) |
| 27 | { |
| 28 | using namespace std; |
| 29 | using namespace EscapeCodes; |
| 30 | return o <<cxx . . $ CppUtilities/EscapeCodes/`operator<<`(75f7075e21abbe9a). Phrasescxx . . $ CppUtilities/EscapeCodes/Phrases#::Errorcxx . . $ CppUtilities/EscapeCodes/Phrases#Error. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Unable to parse arguments: " <<cxx . . $ CppUtilities/EscapeCodes/`operator<<`(b2508d54d7d81196). TextAttributecxx . . $ CppUtilities/EscapeCodes/TextAttribute#::Resetcxx . . $ CppUtilities/EscapeCodes/TextAttribute#Reset. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). failure.whatcxx . . $ std/runtime_error#what(ba32b354807b2b81).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\nSee --help for available commands." |
| 31 | <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 32 | } |
| 33 | |
| 34 | } // namespace CppUtilities |