AgentXcpp
Version:0.3
Internals Documentation
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Friends
Pages
exceptions.hpp
Go to the documentation of this file.
1
/*
2
* Copyright 2011-2016 Tanjeff-Nicolai Moos <tanjeff@cccmz.de>
3
*
4
* This file is part of the agentXcpp library.
5
*
6
* AgentXcpp is free software: you can redistribute it and/or modify
7
* it under the terms of the AgentXcpp library license, version 1, which
8
* consists of the GNU General Public License and some additional
9
* permissions.
10
*
11
* AgentXcpp is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* See the AgentXcpp library license in the LICENSE file of this package
17
* for more details.
18
*/
19
20
#ifndef _EXCEPTIONS_H_
21
#define _EXCEPTIONS_H_
22
23
#include <exception>
24
25
namespace
agentxcpp
26
{
27
28
/**
29
* \brief Exception for parse errors
30
*/
31
class
parse_error
:
public
std::exception { };
32
33
/**
34
* \brief Exception for invalid parameter.
35
*/
36
class
inval_param
:
public
std::exception { };
37
38
/**
39
* \brief Exception for reception of %PDU with invalid version number.
40
*/
41
class
version_error
:
public
std::exception { };
42
43
/**
44
* \brief Exception to indicate a disconnected state
45
*/
46
class
disconnected
:
public
std::exception { };
47
48
/**
49
* \brief Exception to indicate a timeout
50
*/
51
class
timeout_error
:
public
std::exception { };
52
53
/**
54
* \brief Exception to indicate a network error
55
*/
56
class
network_error
:
public
std::exception { };
57
58
/**
59
* \brief Exception to indicate an internal error.
60
*
61
* This is probably a programming error in the AgentXcpp library.
62
*/
63
class
internal_error
:
public
std::exception { };
64
65
/**
66
* \brief Exception to indicate that the master agent was unable to process a
67
* request.
68
*/
69
class
master_is_unable
:
public
std::exception { };
70
71
/**
72
* \brief Exception to indicate that the master agent was not willing to
73
* process a request.
74
*
75
* This could for example happen if the the master agent does not wish to
76
* permit a registration for implementation-specific reasons.
77
*/
78
class
master_is_unwilling
:
public
std::exception { };
79
80
/**
81
* \brief Exception to indicate that a MIB region was registered twice with
82
* the same priority.
83
*
84
* This error can occur if two distinct subagents register the same subtree
85
* with the same priority. It can of course also occur if a single subagent
86
* does a double-registration.
87
*/
88
class
duplicate_registration
:
public
std::exception { };
89
90
/**
91
* \brief Exception to indicate that a MIB region registration was not
92
* found.
93
*
94
* This error can occur when unregistering a MIB region which was not
95
* previously registered. It also occurs when adding an SNMP variable with
96
* an OID which does not reside within a registered MIB region.
97
*/
98
class
unknown_registration
:
public
std::exception { };
99
100
/**
101
* \brief Exception to indicate that obtaining the value of an SNMP
102
* variable failed.
103
*/
104
class
generic_error
:
public
std::exception { };
105
106
/**
107
* \brief Exception to indicate that the master agent does not support
108
* the context.
109
*/
110
class
unsupported_context
:
public
std::exception { };
111
112
}
// namespace agentxcpp
113
114
#endif
agentxcpp::network_error
Exception to indicate a network error.
Definition:
exceptions.hpp:56
agentxcpp::version_error
Exception for reception of PDU with invalid version number.
Definition:
exceptions.hpp:41
agentxcpp::master_is_unwilling
Exception to indicate that the master agent was not willing to process a request. ...
Definition:
exceptions.hpp:78
agentxcpp::internal_error
Exception to indicate an internal error.
Definition:
exceptions.hpp:63
agentxcpp::disconnected
Exception to indicate a disconnected state.
Definition:
exceptions.hpp:46
agentxcpp::parse_error
Exception for parse errors.
Definition:
exceptions.hpp:31
agentxcpp::unsupported_context
Exception to indicate that the master agent does not support the context.
Definition:
exceptions.hpp:110
agentxcpp::master_is_unable
Exception to indicate that the master agent was unable to process a request.
Definition:
exceptions.hpp:69
agentxcpp::duplicate_registration
Exception to indicate that a MIB region was registered twice with the same priority.
Definition:
exceptions.hpp:88
agentxcpp::generic_error
Exception to indicate that obtaining the value of an SNMP variable failed.
Definition:
exceptions.hpp:104
agentxcpp::inval_param
Exception for invalid parameter.
Definition:
exceptions.hpp:36
agentxcpp
Definition:
AbstractVariable.hpp:27
agentxcpp::timeout_error
Exception to indicate a timeout.
Definition:
exceptions.hpp:51
agentxcpp::unknown_registration
Exception to indicate that a MIB region registration was not found.
Definition:
exceptions.hpp:98
src
exceptions.hpp
Generated by
1.8.8