KiCad PCB EDA Suite
XML_PARSER_ERROR Struct Reference

Class XML_PARSER_ERROR implements 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
 Constructor XML_PARSER_ERROR build an XML error by just calling its parent class constructor, std::runtime_error, with the passed message. More...
 

Detailed Description

Class XML_PARSER_ERROR implements a simple wrapper around runtime_error to isolate the errors thrown by the Eagle XML parser.

Definition at line 70 of file eagle_parser.h.

Constructor & Destructor Documentation

◆ XML_PARSER_ERROR()

XML_PARSER_ERROR::XML_PARSER_ERROR ( const wxString &  aMessage)
inlinenoexcept

Constructor XML_PARSER_ERROR 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 78 of file eagle_parser.h.

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

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