Logo Search packages:      
Sourcecode: jaula version File versions

JAULA::Name_Duplicated Class Reference
[JAULA: Error handling]

#include <jaula_name_duplicated.h>

Inheritance diagram for JAULA::Name_Duplicated:

JAULA::Exception

List of all members.


Detailed Description

Class for bad object property name exceptions.

This class defines the exceptions to be thrown in case a property name has been used more than once in the same object.
Author:
Kombo Morongo <morongo666@gmail.com>

Definition at line 61 of file jaula_name_duplicated.h.


Public Types

enum  ExCode {
  NO_ERROR, BAD_DATA_TYPE, NAME_DUPLICATED, LEXAN_ERROR,
  SYNTAX_ERROR
}
 Enumeration of available error codes. More...

Public Member Functions

void addOrigin (std::string const &origin)
 Attachs a new origin after the existing ones.
void display (std::ostream &ostr) const
 Represents the instance in a stream.
std::string const & getAction (void) const
 Retrieves the action that caused the exception.
ExCode getCode (void) const
 Retrieves the error code for the exception.
virtual std::string const & getDetail (void) const
 Retrieves the detailed description for the exception.
std::string const & getName (void) const
 Retrieves the name of the duplicated property.
std::string const & getOrigin (void) const
 Retrieves the method being run when the exception arose.
 Name_Duplicated (std::string const &name="", std::string const &action="", std::string const &origin="")
 Constructor.
Name_Duplicatedoperator= (Name_Duplicated const &orig)
 Assignment operator.
void setAction (std::string const &action)
 Establishes the action that caused the exception.
void setDetail (std::string const &detail)
 Establishes the description for the exception.
void setName (std::string const &name)
 Establishes the name for the duplicated property.
void setOrigin (std::string const &origin)
 Establishes the method being run when the exception arose.
virtual ~Name_Duplicated ()
 Destructor.

Protected Member Functions

void setCode (ExCode code)
 Establishes the error code for the exception.

Private Attributes

std::string detail_
std::string name_

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index