|
|
| version 1.43.2.15.2.2, 2003/03/19 16:28:08 | version 1.43.2.15.2.9, 2003/04/02 16:05:20 |
|---|---|
| Line 28 Exception& Exception::operator =(const E | Line 28 Exception& Exception::operator =(const E |
| return *this; | return *this; |
| } | } |
| Exception::Exception(const char* atype, | Exception::Exception(const char* atype, |
| const String* aproblem_source, | const String* aproblem_source, |
| const char* comment_fmt, ...) { | const char* comment_fmt, ...) { |
| //_asm int 3; | |
| //__asm__("int3"); | |
| ftype=atype; | ftype=atype; |
| fproblem_source=aproblem_source; | fproblem_source=aproblem_source; |
| if(comment_fmt) { | if(comment_fmt) { |
| fcomment=new char[MAX_STRING]; | fcomment=new(PointerFreeGC) char[MAX_STRING]; |
| va_list args; | va_list args; |
| va_start(args, comment_fmt); | va_start(args, comment_fmt); |
| vsnprintf(fcomment, MAX_STRING, comment_fmt, args); | vsnprintf(fcomment, MAX_STRING, comment_fmt, args); |
| // _asm int 3; | |
| va_end(args); | va_end(args); |
| } else | } else |
| fcomment=0; | fcomment=0; |
| Line 56 Exception::Exception( | Line 53 Exception::Exception( |
| fproblem_source(aproblem_source) { | fproblem_source(aproblem_source) { |
| const char* xml_generic_errors=xmlGenericErrors(); | const char* xml_generic_errors=xmlGenericErrors(); |
| if(xml_generic_errors.get() || exc) { | if(xml_generic_errors || exc) { |
| const char* s; | const char* s; |
| switch((GdomeExceptionCode)exc) { | switch((GdomeExceptionCode)exc) { |
| case GDOME_NOEXCEPTION_ERR: s="NOEXCEPTION_ERR"; break; | case GDOME_NOEXCEPTION_ERR: s="NOEXCEPTION_ERR"; break; |
| Line 79 Exception::Exception( | Line 76 Exception::Exception( |
| default: s="<UNKNOWN CODE>"; break; | default: s="<UNKNOWN CODE>"; break; |
| } | } |
| fcomment=CharPtr(new char[MAX_STRING]); | fcomment=new(PointerFreeGC) char[MAX_STRING]; |
| const char* xml_error_message; | const char* xml_error_message; |
| const char* xml_error_prefix; | const char* xml_error_prefix; |
| if(xml_generic_errors) { | if(xml_generic_errors) { |
| Line 103 Exception::Exception( | Line 100 Exception::Exception( |
| xml_error_message // xml generic messages accumulated | xml_error_message // xml generic messages accumulated |
| ); | ); |
| } else | } else |
| fcomment=CharPtr(0); | fcomment=0; |
| } | } |
| #endif | #endif |
| const String* Exception::problem_source() const { | const String* Exception::problem_source() const { |
| return fproblem_source && fproblem_source->size()?fproblem_source:0; | return fproblem_source && fproblem_source->length()?fproblem_source:0; |
| } | } |