mirror of
https://github.com/boostorg/serialization.git
synced 2026-02-24 16:22:27 +00:00
moved shared_helper to mixin of common base
updated shared_ptr serialization accordingly
This commit is contained in:
@@ -31,24 +31,23 @@ xml_archive_exception::xml_archive_exception(
|
||||
) :
|
||||
archive_exception(other_exception, e1, e2)
|
||||
{
|
||||
unsigned int length = 0;
|
||||
switch(c){
|
||||
case xml_archive_parsing_error:
|
||||
length = archive_exception::append(length, "unrecognized XML syntax");
|
||||
archive_exception::append(0, "unrecognized XML syntax");
|
||||
break;
|
||||
case xml_archive_tag_mismatch:
|
||||
length = archive_exception::append(length, "XML start/end tag mismatch");
|
||||
archive_exception::append(0, "XML start/end tag mismatch");
|
||||
if(NULL != e1){
|
||||
length = archive_exception::append(length, " - ");
|
||||
length = archive_exception::append(length, e1);
|
||||
archive_exception::append(0, " - ");
|
||||
archive_exception::append(0, e1);
|
||||
}
|
||||
break;
|
||||
case xml_archive_tag_name_error:
|
||||
length = archive_exception::append(length, "Invalid XML tag name");
|
||||
archive_exception::append(0, "Invalid XML tag name");
|
||||
break;
|
||||
default:
|
||||
BOOST_ASSERT(false);
|
||||
length = archive_exception::append(length, "programming error");
|
||||
archive_exception::append(0, "programming error");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user