Error Class Reference

#include <robIO.h>

Collaboration diagram for Error:

Collaboration graph
[legend]

List of all members.


Detailed Description

streamable error object

Definition at line 111 of file robIO.h.


Public Member Functions

 Error (EError type, std::string file, std::string msg, int lineno=0, std::string category=std::string(), Token token=Token())
 constructor used mostly in lower layers of compiler
 Error (EError type, std::string file, std::string msg, Token token, bool internal=false)
 constructor used mostly in higher layers of compiler
 ~Error ()

Private Member Functions

Coloroperator= (const Color &)

Private Attributes

Privated

Friends

std::ostream & operator<< (std::ostream &, const Error &)
 print error to stream (no new lines)

Classes

struct  Private

Constructor & Destructor Documentation

Error ( EError  type,
std::string  file,
std::string  msg,
int  lineno = 0,
std::string  category = std::string(),
Token  token = Token() 
)

constructor used mostly in lower layers of compiler

input token causing the error

Parameters:
type  error type
file  input file causing the error
msg  error message
lineno  line number (0 means not used)
category  error category, e.g. lexical, ...

Definition at line 120 of file robIO.cc.

References Error::Private::category, Error::d, Error::Private::file, Error::Private::lineno, Error::Private::msg, Error::Private::token, and Error::Private::type.

Error ( EError  type,
std::string  file,
std::string  msg,
Token  token,
bool  internal = false 
)

constructor used mostly in higher layers of compiler

true for internal (compiler) error/warning

Parameters:
type  error type
file  input file causing the error
msg  error message,
token  input token causing the error

Definition at line 130 of file robIO.cc.

References Error::Private::category, Error::d, Error::Private::file, Token::lineno, Error::Private::lineno, Error::Private::msg, Token::text, Error::Private::token, and Error::Private::type.

~Error (  ) 

Definition at line 143 of file robIO.cc.

References Error::d.


Member Function Documentation

Color& operator= ( const Color  )  [private]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const Error  
) [friend]

print error to stream (no new lines)

Definition at line 146 of file robIO.cc.


Member Data Documentation

Private* d [private]

Definition at line 132 of file robIO.h.

Referenced by Error::Error(), StreamDecorator::operator<<(), and Error::~Error().


The documentation for this class was generated from the following files:
Generated on Fri Jul 10 22:42:21 2009 for rob08 by  doxygen 1.5.4