C++ Utilities 5.26.1
Useful C++ classes and routines such as argument parser, IO and conversion utilities
Loading...
Searching...
No Matches
CppUtilities::ParseError Class Reference

The ParseError class is thrown by an ArgumentParser when a parsing error occurs. More...

#include <parseerror.h>

Inheritance diagram for CppUtilities::ParseError:
[legend]
Collaboration diagram for CppUtilities::ParseError:
[legend]

Public Member Functions

 ParseError ()
 Constructs a new ParseError.
 
 ParseError (const std::string &what)
 Constructs a new ParseError.
 
 ~ParseError () noexcept override
 Destroys the ParseError.
 

Detailed Description

The ParseError class is thrown by an ArgumentParser when a parsing error occurs.

Remarks
The class might be used in other parsers, too.
See also
ArgumentParser

Definition at line 11 of file parseerror.h.

Constructor & Destructor Documentation

◆ ParseError() [1/2]

CppUtilities::ParseError::ParseError ( )
inline

Constructs a new ParseError.

Definition at line 21 of file parseerror.h.

◆ ParseError() [2/2]

CppUtilities::ParseError::ParseError ( const std::string & what)
inline

Constructs a new ParseError.

what is a std::string describing the cause of the ParseError.

Definition at line 29 of file parseerror.h.

◆ ~ParseError()

CppUtilities::ParseError::~ParseError ( )
overridenoexcept

Destroys the ParseError.

Definition at line 19 of file parseerror.cpp.


The documentation for this class was generated from the following files: