libxcks  0.1.0.1
libxcks::XMLParserException Class Reference

An exception class for the XML parser. More...

#include <xmlparser.hpp>

Public Member Functions

 XMLParserException () noexcept
 Default constructor. More...
 
 XMLParserException (const XMLParserException &source) noexcept
 Copy constructor. More...
 
XMLParserExceptionoperator= (const XMLParserException &source) noexcept
 Copy assignment operator. More...
 
 XMLParserException (const std::string &msg) noexcept
 Constructor with a message. More...
 
virtual ~XMLParserException ()
 Destructor. More...
 
virtual std::string what () const noexcept
 Returns the explanatory string. More...
 
virtual std::string getMessage () const noexcept
 Returns the message. More...
 
virtual void setMessage (const std::string &msg) noexcept
 Sets the message. More...
 

Protected Attributes

std::string message
 The message of the exception. More...
 

Detailed Description

An exception class for the XML parser.

Definition at line 41 of file xmlparser.hpp.

Constructor & Destructor Documentation

◆ XMLParserException() [1/3]

libxcks::XMLParserException::XMLParserException ( )
noexcept

Default constructor.

Definition at line 56 of file xmlparser.cpp.

◆ XMLParserException() [2/3]

libxcks::XMLParserException::XMLParserException ( const XMLParserException source)
noexcept

Copy constructor.

Parameters
sourceSource instance.

Definition at line 67 of file xmlparser.cpp.

◆ XMLParserException() [3/3]

libxcks::XMLParserException::XMLParserException ( const std::string &  msg)
noexcept

Constructor with a message.

Parameters
[in]msgThe message of the exception.

Definition at line 99 of file xmlparser.cpp.

◆ ~XMLParserException()

libxcks::XMLParserException::~XMLParserException ( )
virtual

Destructor.

Definition at line 109 of file xmlparser.cpp.

Member Function Documentation

◆ getMessage()

string libxcks::XMLParserException::getMessage ( ) const
virtualnoexcept

Returns the message.

Do the same as what().

Returns
The explanatory string.

Definition at line 136 of file xmlparser.cpp.

◆ operator=()

XMLParserException & libxcks::XMLParserException::operator= ( const XMLParserException source)
noexcept

Copy assignment operator.

Parameters
sourceSource instance.
Returns
A reference on the instance.

Definition at line 83 of file xmlparser.cpp.

◆ setMessage()

void libxcks::XMLParserException::setMessage ( const std::string &  msg)
virtualnoexcept

Sets the message.

Parameters
[in]msgThe message of the exception.

Definition at line 148 of file xmlparser.cpp.

◆ what()

string libxcks::XMLParserException::what ( ) const
virtualnoexcept

Returns the explanatory string.

Do the same as getMessage().

Returns
The explanatory string.

Definition at line 122 of file xmlparser.cpp.

Member Data Documentation

◆ message

std::string libxcks::XMLParserException::message
protected

The message of the exception.

Definition at line 44 of file xmlparser.hpp.


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