Logo Search packages:      
Sourcecode: jaula version File versions

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

#include <jaula_bad_data_type.h>

Inheritance diagram for JAULA::Bad_Data_Type:

JAULA::Exception

List of all members.


Detailed Description

class for incompatible data type exceptions

This class defines the exceptions to be thrown in case of incompatible data types usage.
Author:
Kombo Morongo <morongo666@gmail.com>

Definition at line 52 of file jaula_bad_data_type.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.
 Bad_Data_Type (std::string const &detail="", std::string const &action="", std::string const &origin="")
 Constructor.
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 & getOrigin (void) const
 Retrieves the method being run when the exception arose.
Bad_Data_Typeoperator= (Bad_Data_Type 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 setOrigin (std::string const &origin)
 Establishes the method being run when the exception arose.
virtual ~Bad_Data_Type ()
 Destructor.

Protected Member Functions

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

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

Generated by  Doxygen 1.6.0   Back to index