Logo Search packages:      
Sourcecode: jaula version File versions

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

#include <jaula_syntax_error.h>

Inheritance diagram for JAULA::Syntax_Error:

JAULA::Exception

List of all members.


Detailed Description

class for syntax exceptions

This class defines the exceptions to be thrown when errors are detected during the syntax analysis phase.
Author:
Kombo Morongo <morongo666@gmail.com>

Definition at line 52 of file jaula_syntax_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.
Syntax_Erroroperator= (Syntax_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.
 Syntax_Error (std::string const &detail="", std::string const &action="", std::string const &origin="")
 Constructor.
virtual ~Syntax_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