Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

Ars::ExceptionLexer Class Reference

Exceptions caused by the Lexer. More...

#include <arsexception.h>

Inheritance diagram for Ars::ExceptionLexer:

Inheritance graph
[legend]
Collaboration diagram for Ars::ExceptionLexer:

Collaboration graph
[legend]

Public Member Functions

 ExceptionLexer (const std::string &sWhat, const int aLineno)
 sWhat A string for more information on what caused the exception

virtual const char * what () const throw ()
 A string describing what caused the exception.

virtual const std::string & std_what () const throw ()
 A std::string reference describing what caused the exception.


Detailed Description

Exceptions caused by the Lexer.

Definition at line 63 of file arsexception.h.


Constructor & Destructor Documentation

Ars::ExceptionLexer::ExceptionLexer const std::string &  sWhat,
const int  aLineno
[inline]
 

sWhat A string for more information on what caused the exception

Definition at line 67 of file arsexception.h.

References Ars::ExceptionBase::m_sWhat.

00068         : ExceptionBase(sWhat)
00069         {
00070                 char    tmp[512];
00071                 sprintf( tmp , "Error in interpreter: (L %d): %s\n" , aLineno , sWhat.c_str() );
00072                 m_sWhat = tmp;
00073         }


Member Function Documentation

virtual const std::string& Ars::ExceptionLexer::std_what  )  const throw () [inline, virtual]
 

A std::string reference describing what caused the exception.

Reimplemented from Ars::ExceptionBase.

Definition at line 82 of file arsexception.h.

References Ars::ExceptionBase::m_sWhat.

00082 { return m_sWhat; }

virtual const char* Ars::ExceptionLexer::what  )  const throw () [inline, virtual]
 

A string describing what caused the exception.

Reimplemented from Ars::ExceptionBase.

Definition at line 76 of file arsexception.h.

References Ars::ExceptionBase::m_sWhat.

00077         { 
00078                 return m_sWhat.c_str(); 
00079         }


The documentation for this class was generated from the following file:
Generated on Fri Dec 5 04:06:42 2003 for Borqueror by doxygen 1.3.3