Orcus
include
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 <stdexcept>
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
invalid_arg_error
:
public
std::invalid_argument
30
{
31
public
:
32
explicit
invalid_arg_error
(
const
std::string& msg);
33
virtual
~
invalid_arg_error
()
throw
();
34
};
35
36
class
ORCUS_PSR_DLLPUBLIC
xml_structure_error
:
public
general_error
37
{
38
public
:
39
explicit
xml_structure_error
(const ::std::string& msg);
40
virtual
~
xml_structure_error
()
throw
();
41
};
42
43
class
ORCUS_PSR_DLLPUBLIC
value_error
:
public
general_error
44
{
45
public
:
46
explicit
value_error
(
const
std::string& msg);
47
virtual
~
value_error
()
throw
();
48
};
49
50
}
51
52
#endif
53
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
orcus::invalid_arg_error
Definition:
exception.hpp:29
orcus::general_error
Definition:
exception.hpp:18
orcus::xml_structure_error
Definition:
exception.hpp:36
orcus::value_error
Definition:
exception.hpp:43
Generated on Sat Sep 11 2021 07:46:52 for Orcus by
1.8.17