KiCad PCB EDA Suite
SEXPR::PARSE_EXCEPTION Class Reference

#include <sexpr_exception.h>

Inheritance diagram for SEXPR::PARSE_EXCEPTION:

Public Member Functions

 PARSE_EXCEPTION (const std::string &aMessage)
 
const char * what () const noexcept override
 
virtual ~PARSE_EXCEPTION () noexcept
 

Private Attributes

std::string msg
 

Detailed Description

Definition at line 27 of file sexpr_exception.h.

Constructor & Destructor Documentation

◆ PARSE_EXCEPTION()

SEXPR::PARSE_EXCEPTION::PARSE_EXCEPTION ( const std::string &  aMessage)
inline

Definition at line 30 of file sexpr_exception.h.

30: msg( aMessage ) {}

◆ ~PARSE_EXCEPTION()

virtual SEXPR::PARSE_EXCEPTION::~PARSE_EXCEPTION ( )
inlinevirtualnoexcept

Definition at line 32 of file sexpr_exception.h.

32{}

Member Function Documentation

◆ what()

const char * SEXPR::PARSE_EXCEPTION::what ( ) const
inlineoverridenoexcept

Definition at line 31 of file sexpr_exception.h.

31{ return msg.c_str(); }

References msg.

Member Data Documentation

◆ msg

std::string SEXPR::PARSE_EXCEPTION::msg
private

Definition at line 35 of file sexpr_exception.h.

Referenced by what().


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