Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Exception.hpp File Reference

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

Go to the source code of this file.

Namespaces

namespace  lemur
namespace  lemur::api

Defines

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


Define Documentation

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

#define LEMUR_BAD_PARAMETER_ERROR   ((lemur::api::LemurErrorType)0xFFFFFFF7)
 

#define LEMUR_GENERIC_ERROR   ((lemur::api::LemurErrorType)0xFFFFFFFF)
 

#define LEMUR_INTERNAL_ERROR   ((lemur::api::LemurErrorType)0xFFFFFFF8)
 

#define LEMUR_IO_ERROR   ((lemur::api::LemurErrorType)0xFFFFFFFB)
 

#define LEMUR_KEYFILE_IO_ERROR   ((lemur::api::LemurErrorType)0xFFFFFFFC)
 

#define LEMUR_MISSING_PARAMETER_ERROR   ((lemur::api::LemurErrorType)0xFFFFFFFE)
 

#define LEMUR_NETWORK_ERROR   ((lemur::api::LemurErrorType)0xFFFFFFF9)
 

#define LEMUR_PARSE_ERROR   ((lemur::api::LemurErrorType)0xFFFFFFFD)
 

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

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

#define LEMUR_RUNTIME_ERROR   ((lemur::api::LemurErrorType)0xFFFFFFFA)
 

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

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


Generated on Tue Jun 15 11:02:56 2010 for Lemur by doxygen 1.3.4