Orcus
exception.hpp
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6  */
7 
8 #ifndef INCLUDED_ORCUS_EXCEPTION_HPP
9 #define INCLUDED_ORCUS_EXCEPTION_HPP
10 
11 #include <exception>
12 #include <string>
13 
14 #include "env.hpp"
15 
16 namespace orcus {
17 
18 class ORCUS_PSR_DLLPUBLIC general_error : public ::std::exception
19 {
20 public:
21  explicit general_error(const std::string& msg);
22  explicit general_error(const std::string& cls, const std::string& msg);
23  virtual ~general_error() throw();
24  virtual const char* what() const throw();
25 private:
26  ::std::string m_msg;
27 };
28 
29 class ORCUS_PSR_DLLPUBLIC xml_structure_error : public general_error
30 {
31 public:
32  explicit xml_structure_error(const ::std::string& msg);
33  virtual ~xml_structure_error() throw();
34 };
35 
36 }
37 
38 #endif
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Definition: exception.hpp:18
Definition: exception.hpp:29
Definition: base64.hpp:15