aGrUM 3.2.0
a C++ library for (probabilistic) graphical models
gum::XmlException Class Reference

Thrown by XmlDocument/XmlElement on any ticpp/tinyxml parse or access error. More...

#include <XmlDocument.h>

Inherits std::exception.

Public Member Functions

 XmlException (std::string message)
const char * what () const noexcept override

Private Attributes

std::string _message_

Detailed Description

Thrown by XmlDocument/XmlElement on any ticpp/tinyxml parse or access error.

Definition at line 72 of file XmlDocument.h.

Constructor & Destructor Documentation

◆ XmlException()

gum::XmlException::XmlException ( std::string message)
explicit

Definition at line 48 of file XmlDocument.cpp.

48: _message_(std::move(message)) {}
std::string _message_
Definition XmlDocument.h:79

References _message_.

Referenced by gum::XmlElement::attribute(), gum::XmlElement::attribute(), gum::XmlDocument::firstChildElement(), gum::XmlElement::firstChildElement(), gum::XmlElement::firstChildElement(), gum::XmlDocument::loadFile(), and gum::XmlDocument::parse().

Here is the caller graph for this function:

Member Function Documentation

◆ what()

const char * gum::XmlException::what ( ) const
overridenoexcept

Definition at line 50 of file XmlDocument.cpp.

50{ return _message_.c_str(); }

References _message_.

Member Data Documentation

◆ _message_

std::string gum::XmlException::_message_
private

Definition at line 79 of file XmlDocument.h.

Referenced by XmlException(), and what().


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