jaula API Reference  version 1.4.0
jaula_name_duplicated.h
1 
2 /*
3  * jaula_name_duplicated.h : JSON Analysis User Library Acronym
4  * Object property name repeated exception
5  *
6  * Copyright (C) 2007, 2008, 2009 Kombo Morongo <morongo666@gmail.com>
7  *
8  * This library is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or (at
11  * your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with this library; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
21  *
22  * svn info:
23  * $Author: morongo $
24  * $HeadURL: https://jaula.svn.sourceforge.net/svnroot/jaula/tags/jaula-1.4.0/jaula/jaula_name_duplicated.h $
25  * $Id: jaula_name_duplicated.h 45 2009-01-11 16:17:03Z morongo $
26  * $Revision: 45 $
27  */
28 
30 // //
31 // jaula_name_duplicated.h : JSON analysis for application Readers //
32 // Object property name repeated exception //
33 // //
34 // (c) 2007 Kombo Morongo <morongo666@gmail.com> //
35 // //
37 
38 #ifndef _JAULA_NAME_DUPLICATED_H_
39 #define _JAULA_NAME_DUPLICATED_H_
40 
41 #include <jaula/jaula_exception.h>
42 
47 namespace JAULA
48 { // namespace JAULA
49 
61  class Name_Duplicated : public Exception
62  { // class Name_Duplicated
63  public:
64 
79  Name_Duplicated(std::string const &name = ""
80  , std::string const &action = ""
81  , std::string const &origin = "");
82 
86  virtual ~Name_Duplicated();
87 
91  std::string const &getName(void) const;
92 
100  virtual std::string const &getDetail(void) const;
101 
107  void setName(std::string const &name);
108 
124 
125  private:
126 
130  std::string name_;
131 
135  std::string detail_;
136  }; // class Name_Duplicated
137 
138 } // namespace JAULA
139 #endif
140 
141 // EOF $Id: jaula_name_duplicated.h 45 2009-01-11 16:17:03Z morongo $
void setName(std::string const &name)
Establishes the name for the duplicated property.
Definition: jaula_name_duplicated.cc:65
std::string const & getName(void) const
Retrieves the name of the duplicated property.
Definition: jaula_name_duplicated.cc:55
Class for bad object property name exceptions.
Definition: jaula_name_duplicated.h:61
std::string detail_
Definition: jaula_name_duplicated.h:135
Base class for error handling exceptions.
Definition: jaula_exception.h:53
virtual std::string const & getDetail(void) const
Retrieves the detailed description for the exception.
Definition: jaula_name_duplicated.cc:60
Name_Duplicated & operator=(Name_Duplicated const &orig)
Assignment operator.
Definition: jaula_name_duplicated.cc:74
Name_Duplicated(std::string const &name="", std::string const &action="", std::string const &origin="")
Constructor.
Definition: jaula_name_duplicated.cc:42
std::string name_
Definition: jaula_name_duplicated.h:130
virtual ~Name_Duplicated()
Destructor.
Definition: jaula_name_duplicated.cc:52


Back to JAULA Project Documentation Page.

Go to JAULA Project Home Page.


Copyright (c) 2007, 2008, 2009 Kombo Morongo.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

API Reference Generated for jaula by

doxygen

jaula project hosted by

SourceForge.net Logo