Code forensics  0.1
Generate historical information about code changes
validation_error Class Reference

more informative validation error exception More...

#include <cli_options.hpp>

Inheritance diagram for validation_error:
Collaboration diagram for validation_error:

Public Member Functions

 validation_error (Str _msg)
 create validation error with 'invalid option' state More...
 
const char * what () const noexcept override
 get error message description, returning baseline one concatenated with the user-provdede elaboration More...
 

Private Attributes

Str msg
 Stored user message. More...
 

Detailed Description

more informative validation error exception

Derived from the regular validation error and only providing support for the user-provided error elaboration.

Constructor & Destructor Documentation

◆ validation_error()

validation_error::validation_error ( Str  _msg)
inline

create validation error with 'invalid option' state

Member Function Documentation

◆ what()

const char* validation_error::what ( ) const
inlineoverridenoexcept

get error message description, returning baseline one concatenated with the user-provdede elaboration

Member Data Documentation

◆ msg

Str validation_error::msg
private

Stored user message.


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