Logo Search packages:      
Sourcecode: jaula version File versions

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

#include <jaula_no_error.h>

Inheritance diagram for JAULA::No_Error:

JAULA::Exception

List of all members.


Detailed Description

class for no error condition exceptions

This class defines a null exception with no error.
Author:
Kombo Morongo <morongo666@gmail.com>

Definition at line 51 of file jaula_no_error.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 & getOrigin (void) const
 Retrieves the method being run when the exception arose.
 No_Error (void)
 Constructor.
No_Erroroperator= (No_Error 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 ~No_Error ()
 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