KiCad PCB EDA Suite
XML_PARSER_ERROR Struct Reference

Implement a simple wrapper around runtime_error to isolate the errors thrown by the Eagle XML parser. More...

#include <eagle_parser.h>

Inheritance diagram for XML_PARSER_ERROR:

Public Member Functions

 XML_PARSER_ERROR (const wxString &aMessage) noexcept
 Build an XML error by just calling its parent class constructor, std::runtime_error, with the passed message. More...
 

Detailed Description

Implement a simple wrapper around runtime_error to isolate the errors thrown by the Eagle XML parser.

Definition at line 68 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ XML_PARSER_ERROR()

XML_PARSER_ERROR::XML_PARSER_ERROR ( const wxString &  aMessage)
inlinenoexcept

Build an XML error by just calling its parent class constructor, std::runtime_error, with the passed message.

Parameters
aMessageis an explanatory error message.

Definition at line 76 of file eagle_parser.h.

76  :
77  std::runtime_error( "XML parser failed - " + aMessage.ToStdString() )
78  {}

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