|
|
| version 1.5, 2005/12/16 10:15:12 | version 1.6, 2011/05/25 03:58:11 |
|---|---|
| Line 17 static const char * const IDENT="$Date$" | Line 17 static const char * const IDENT="$Date$" |
| // methods | // methods |
| XmlException::XmlException(const String* aproblem_source) { | XmlException::XmlException(const String* aproblem_source, const char* aproblem_comment, ...) { |
| ftype="xml"; | ftype="xml"; |
| fproblem_source=aproblem_source; | fproblem_source=aproblem_source; |
| if(const char* xml_generic_errors=xmlGenericErrors()) { | if(aproblem_comment) { |
| fcomment=new(PointerFreeGC) char[MAX_STRING]; | |
| va_list args; | |
| va_start(args, aproblem_comment); | |
| vsnprintf(fcomment, MAX_STRING, aproblem_comment, args); | |
| va_end(args); | |
| } else if(const char* xml_generic_errors=xmlGenericErrors()) | |
| fcomment=pa_strdup(xml_generic_errors); | fcomment=pa_strdup(xml_generic_errors); |
| } else | else |
| fcomment="-UNKNOWN ERROR-"; | fcomment="-UNKNOWN ERROR-"; |
| } | } |
| #endif | #endif |