33 #ifndef __H__UG_BRIDGE__ERROR__
34 #define __H__UG_BRIDGE__ERROR__
49 const char* file =
" -- no file -- ",
50 const unsigned long line = 0)
54 UG_ERR_LOG(
"#### Registry ERROR ("<<name_<<
"):"<<msg_<<
"\n");
58 const char* file =
" -- no file -- ",
59 const unsigned long line = 0)
61 name(
"-- no name --"),
msg(msg_)
63 UG_ERR_LOG(
"#### Registry ERROR:"<<msg_<<
"\n");
76 #define UG_THROW_REGISTRY_ERROR(cls,msg) \
77 {ug_throw_error(); std::stringstream ss; ss << msg; \
78 throw(ug::bridge::UGRegistryError((cls),ss.str(),\
81 #define UG_THROW_REGISTRY_MSG(msg) \
82 {ug_throw_error(); std::stringstream ss; ss << msg; \
83 throw(ug::bridge::UGRegistryError(ss.str(),\
Instances of this class or of derived classes are thrown if errors arise.
Definition: error.h:104
#define UG_ERR_LOG(msg)
Definition: log.h:383
std::string name
Definition: error.h:66
UGRegistryError(std::string name_, std::string msg_, const char *file=" -- no file -- ", const unsigned long line=0)
Definition: error.h:47
UGRegistryError(std::string msg_, const char *file=" -- no file -- ", const unsigned long line=0)
Definition: error.h:57
std::string msg
Definition: error.h:67