Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
xml_load_exception.h
Go to the documentation of this file.
1#ifndef API_MIP_DELEGATE_ERRORS_XML_LOAD_EXCEPTION_H_
2#define API_MIP_DELEGATE_ERRORS_XML_LOAD_EXCEPTION_H_
3
4#include <exception>
5#include <stdexcept>
6#include <string>
7
8#include "mip/mip_namespace.h"
9
10MIP_NAMESPACE_BEGIN
11
12namespace xml {
13
14class XmlLoadException : public std::exception {
15public:
16 XmlLoadException(const std::string& message) : mMessage(message.c_str()) {}
17 virtual char const* what() const noexcept override { return mMessage.c_str(); }
18
19private:
20 std::string mMessage;
21};
22
23} // xml
24
25MIP_NAMESPACE_END
26
27#endif // API_MIP_DELEGATE_ERRORS_XML_LOAD_EXCEPTION_H_
XmlLoadException(const std::string &message)
virtual char const * what() const noexcept override
MIP namespace macros.