C++ Utilities 5.26.1
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Loading...
Searching...
No Matches
parseerror.cpp
Go to the documentation of this file.
1#include "./parseerror.h"
2
4
5#include <iostream>
6
7namespace CppUtilities {
8
20{
21}
22
26std::ostream &operator<<(std::ostream &o, const ParseError &failure)
27{
28 using namespace std;
29 using namespace EscapeCodes;
30 return o << Phrases::Error << "Unable to parse arguments: " << TextAttribute::Reset << failure.what() << "\nSee --help for available commands."
31 << endl;
32}
33
34} // namespace CppUtilities
The ParseError class is thrown by an ArgumentParser when a parsing error occurs.
Definition parseerror.h:11
~ParseError() noexcept override
Destroys the ParseError.
Contains all utilities provides by the c++utilities library.
CPP_UTILITIES_EXPORT std::ostream & operator<<(std::ostream &out, Indentation indentation)
STL namespace.