Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

DocxManagerError Class Reference

Class to indicate the error More...

#include <DocxManagerError.h>

List of all members.

Public Methods

 DocxManagerError () noexcept
 Default constructor

 DocxManagerError (std::string const &message, DocxManagerErrorCode const docx_manager_error_code) noexcept
 Constructor to specify the message and the error code

 DocxManagerError (DocxManagerErrorCode const docx_manager_error_code) noexcept
 Constructor to specify the error code

 ~DocxManagerError ()
 Default destructor

std::string getMessage () const noexcept
 Get the error message Error message

void setMessage (std::string const &message) noexcept
 Set the error message

DocxManagerErrorCode getDocxManagerErrorCode () const noexcept
 Get the error code Error code

void setDocxManagerErrorCode (DocxManagerErrorCode const docx_manager_error_code) noexcept
 Set the error code

void throwDocxManagerError () const
 Exception throw


Private Attributes

DocxManagerErrorCode m_docx_manager_error_code
 Error code

std::string m_message
 Error message


Static Private Attributes

const std::unordered_map<
DocxManagerErrorCode, std::string > 
m_errorcode_msg


Detailed Description

Class to indicate the error


Constructor & Destructor Documentation

DocxManagerError::DocxManagerError   [inline]
 

Default constructor

DocxManagerError::DocxManagerError std::string const &    message,
DocxManagerErrorCode const    docx_manager_error_code
[inline]
 

Constructor to specify the message and the error code

Parameters:
message - Error message
docx_manager_error_code - Error code

DocxManagerError::DocxManagerError DocxManagerErrorCode const    docx_manager_error_code [inline]
 

Constructor to specify the error code

Parameters:
docx_manager_error_code - Error code

DocxManagerError::~DocxManagerError   [inline]
 

Default destructor


Member Function Documentation

std::string DocxManagerError::getMessage   const
 

Get the error message Error message

void DocxManagerError::setMessage std::string const &    message
 

Set the error message

Parameters:
message - Error message

DocxManagerErrorCode DocxManagerError::getDocxManagerErrorCode   const
 

Get the error code Error code

void DocxManagerError::setDocxManagerErrorCode DocxManagerErrorCode const    docx_manager_error_code
 

Set the error code

Parameters:
docx_manager_error_code - Error code

void DocxManagerError::throwDocxManagerError   const
 

Exception throw


Member Data Documentation

const std::unordered_map<DocxManagerErrorCode, std::string> DocxManagerError::m_errorcode_msg [static, private]
 

DocxManagerErrorCode DocxManagerError::m_docx_manager_error_code [private]
 

Error code

std::string DocxManagerError::m_message [private]
 

Error message


The documentation for this class was generated from the following file:
Generated on 10 Apr 2023 for Word API C/C++ Interface by Doxygen 1.3-rc2