Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Exception.hpp File Reference

#include <iostream>
#include <string>
#include <sstream>

Go to the source code of this file.

Compounds

class  Exception

Defines

#define LEMUR_ABORT(e)   { std::cerr << e.what() << std::endl; exit(-1); }
#define LEMUR_THROW_LINE(code, text, file, line)   throw Exception( file, line, std::string() + text, (code) )
#define LEMUR_THROW(code, text)   LEMUR_THROW_LINE(code, text, __FILE__, __LINE__)
#define LEMUR_RETHROW_LINE(e, text, file, line)   throw Exception( file, line, (std::string() + text), (e) )
#define LEMUR_RETHROW(e, text)   LEMUR_RETHROW_LINE(e, text, __FILE__, __LINE__)
#define LEMUR_GENERIC_ERROR   ((LemurErrorType)0xFFFFFFFF)
#define LEMUR_MISSING_PARAMETER_ERROR   ((LemurErrorType)0xFFFFFFFE)
#define LEMUR_BAD_PARAMETER_ERROR   ((LemurErrorType)0xFFFFFFF7)
#define LEMUR_PARSE_ERROR   ((LemurErrorType)0xFFFFFFFD)
#define LEMUR_KEYFILE_IO_ERROR   ((LemurErrorType)0xFFFFFFFC)
#define LEMUR_IO_ERROR   ((LemurErrorType)0xFFFFFFFB)
#define LEMUR_RUNTIME_ERROR   ((LemurErrorType)0xFFFFFFFA)
#define LEMUR_NETWORK_ERROR   ((LemurErrorType)0xFFFFFFF9)
#define LEMUR_INTERNAL_ERROR   ((LemurErrorType)0xFFFFFFF8)

Typedefs

typedef unsigned long LemurErrorType


Define Documentation

#define LEMUR_ABORT      { std::cerr << e.what() << std::endl; exit(-1); }
 

#define LEMUR_BAD_PARAMETER_ERROR   ((LemurErrorType)0xFFFFFFF7)
 

#define LEMUR_GENERIC_ERROR   ((LemurErrorType)0xFFFFFFFF)
 

#define LEMUR_INTERNAL_ERROR   ((LemurErrorType)0xFFFFFFF8)
 

#define LEMUR_IO_ERROR   ((LemurErrorType)0xFFFFFFFB)
 

#define LEMUR_KEYFILE_IO_ERROR   ((LemurErrorType)0xFFFFFFFC)
 

#define LEMUR_MISSING_PARAMETER_ERROR   ((LemurErrorType)0xFFFFFFFE)
 

#define LEMUR_NETWORK_ERROR   ((LemurErrorType)0xFFFFFFF9)
 

#define LEMUR_PARSE_ERROR   ((LemurErrorType)0xFFFFFFFD)
 

#define LEMUR_RETHROW e,
text       LEMUR_RETHROW_LINE(e, text, __FILE__, __LINE__)
 

#define LEMUR_RETHROW_LINE e,
text,
file,
line       throw Exception( file, line, (std::string() + text), (e) )
 

#define LEMUR_RUNTIME_ERROR   ((LemurErrorType)0xFFFFFFFA)
 

#define LEMUR_THROW code,
text       LEMUR_THROW_LINE(code, text, __FILE__, __LINE__)
 

#define LEMUR_THROW_LINE code,
text,
file,
line       throw Exception( file, line, std::string() + text, (code) )
 


Typedef Documentation

typedef unsigned long LemurErrorType
 


Generated on Wed Nov 3 12:59:11 2004 for Lemur Toolkit by doxygen1.2.18