OpenXLSX 1.9.1
Loading...
Searching...
No Matches
XLException.hpp
Go to the documentation of this file.
1#ifndef OPENXLSX_XLEXCEPTION_HPP
2#define OPENXLSX_XLEXCEPTION_HPP
3
4#ifdef _MSC_VER // conditionally enable MSVC specific pragmas to avoid other compilers warning about unknown pragmas
5# pragma warning(push)
6# pragma warning(disable : 4251)
7# pragma warning(disable : 4275)
8#endif // _MSC_VER
9
10// ===== External Includes ===== //
11#include <stdexcept> // std::runtime_error
12#include <string> // std::string - Issue #278 should be resolved by this
13
14// ===== OpenXLSX Includes ===== //
15#include "OpenXLSX-Exports.hpp"
16
17namespace OpenXLSX
18{
22 class OPENXLSX_EXPORT XLException : public std::runtime_error
23 {
24 public:
25 explicit XLException(const std::string& err) : runtime_error(err) {};
26 };
27
31 class OPENXLSX_EXPORT XLOverflowError : public XLException
32 {
33 public:
34 explicit XLOverflowError(const std::string& err) : XLException(err) {};
35 };
36
40 class OPENXLSX_EXPORT XLValueTypeError : public XLException
41 {
42 public:
43 explicit XLValueTypeError(const std::string& err) : XLException(err) {};
44 };
45
49 class OPENXLSX_EXPORT XLCellAddressError : public XLException
50 {
51 public:
52 explicit XLCellAddressError(const std::string& err) : XLException(err) {};
53 };
54
58 class OPENXLSX_EXPORT XLInputError : public XLException
59 {
60 public:
61 explicit XLInputError(const std::string& err) : XLException(err) {};
62 };
63
67 class OPENXLSX_EXPORT XLInternalError : public XLException
68 {
69 public:
70 explicit XLInternalError(const std::string& err) : XLException(err) {};
71 };
72
76 class OPENXLSX_EXPORT XLPropertyError : public XLException
77 {
78 public:
79 explicit XLPropertyError(const std::string& err) : XLException(err) {};
80 };
81
85 class OPENXLSX_EXPORT XLSheetError : public XLException
86 {
87 public:
88 explicit XLSheetError(const std::string& err) : XLException(err) {};
89 };
90
94 class OPENXLSX_EXPORT XLDateTimeError : public XLException
95 {
96 public:
97 explicit XLDateTimeError(const std::string& err) : XLException(err) {};
98 };
99
103 class OPENXLSX_EXPORT XLFormulaError : public XLException
104 {
105 public:
106 explicit XLFormulaError(const std::string& err) : XLException(err) {};
107 };
108
109} // namespace OpenXLSX
110
111#ifdef _MSC_VER // conditionally enable MSVC specific pragmas to avoid other compilers warning about unknown pragmas
112# pragma warning(pop)
113#endif // _MSC_VER
114
115#endif // OPENXLSX_XLEXCEPTION_HPP
Definition XLException.hpp:50
XLCellAddressError(const std::string &err)
Definition XLException.hpp:52
Definition XLException.hpp:95
XLDateTimeError(const std::string &err)
Definition XLException.hpp:97
Definition XLException.hpp:23
XLException(const std::string &err)
Definition XLException.hpp:25
Definition XLException.hpp:104
XLFormulaError(const std::string &err)
Definition XLException.hpp:106
Definition XLException.hpp:59
XLInputError(const std::string &err)
Definition XLException.hpp:61
Definition XLException.hpp:68
XLInternalError(const std::string &err)
Definition XLException.hpp:70
Definition XLException.hpp:32
XLOverflowError(const std::string &err)
Definition XLException.hpp:34
Definition XLException.hpp:77
XLPropertyError(const std::string &err)
Definition XLException.hpp:79
Definition XLException.hpp:86
XLSheetError(const std::string &err)
Definition XLException.hpp:88
Definition XLException.hpp:41
XLValueTypeError(const std::string &err)
Definition XLException.hpp:43
Definition IZipArchive.hpp:18