blob: 6057cbb74be503dc5a164f7665c6e0ab5566894f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// $Id$
/**
* @file Common.h
* @author Will Otte <wotte@dre.vanderbilt.edu>
*
* Some common definitions for all config_handlers.
*/
#ifndef CONFIG_HANDLERS_COMMON_H
#define CONFIG_HANDLERS_COMMON_H
#include <string>
namespace CIAO
{
namespace Config_Handlers
{
/**
* @class Config_Error
* @brief Exception to communicate a config_handlers error
*/
class Config_Error
{
public:
Config_Error (const std::string &name,
const std::string &error) :
name_ (name),
error_ (error)
{};
/// Some identifying information about the element that
/// caused the error
std::string name_;
/// A human readable error message
std::string error_;
};
}
}
#endif /* CONFIG_HANDLERS_COMMON_H */
|