#
# Revision history:
# $Log$
+# Revision 1.10 2004/12/10 07:31:35 eronchie
+# Increased version
+#
# Revision 1.9 2004/11/16 15:31:13 eronchie
# Increased version
#
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
-AC_INIT([GLite WMS Utils Exception], [1.0.0])
+AC_INIT([GLite WMS Utils Exception], [1.0.2])
AC_CONFIG_AUX_DIR([./project])
AM_INIT_AUTOMAKE([1.6.3 subdir-objects])
AC_CONFIG_SRCDIR([src/Exception.cpp])
* Exception Class Implementation
************************************/
//Constructor/Destructor
+
Exception::Exception () {
line = 0;
};
line = line_number;
method_name = method;
error_message = "";
+ exception_name = "";
}
Exception::Exception( const std::string& file, int line_number, const std::string& method, int code, const std::string& name)
const char* Exception::what() const throw(){
if (!ancestor.empty()) return ancestor.c_str();
- return error_message.c_str();
+
+ return error_message.c_str();
};
string Exception::getExceptionName(){
string Exception::dbgMessage(){
string result ;
- result = "";
- // Exception name should be displayed only once
- if (stack_strings.size()==0){result +=exception_name;};
+ //Adding exception Name
+ result = exception_name;
+
//Adding error msg
if (error_message!="") result +=": " + string(what());
+
if (result != "") result+="\n";
+
//Adding Source
result +="\tat " + method_name +"[" +source_file;
+
//Adding line number
if (line!=0){
char buffer [1024] ;