Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DataFormatError Class Reference
[Exceptions]

#include <lemon/error.h>

Inheritance diagram for DataFormatError:

Inheritance graph
[legend]
Collaboration diagram for DataFormatError:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DataFormatError (const char *the_message)
 
 DataFormatError (const std::string &file_name, int line_num, const char *the_message)
 
void line (int line_num)
 
void message (char *the_message)
 
void file (const std::string &file_name)
 
int line () const
 
const char * message () const
 
const char * file () const
 Returns the filename.
virtual const char * what () const throw ()
 

Protected Attributes

std::auto_ptr< std::string > _file

Member Function Documentation

const char* file  )  const [inline]
 

Returns "(unknown)" if the filename was not specified.

Definition at line 237 of file error.h.


Member Data Documentation

std::auto_ptr<std::string> _file [mutable, protected]
 

Todo:
Much better solution is boost::shared_ptr

Definition at line 198 of file error.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 21 15:02:32 2005 for LEMON by  doxygen 1.4.1