17 #include <boost/lexical_cast.hpp> 18 #include <boost/archive/basic_archive.hpp> 19 #include <boost/archive/archive_exception.hpp> 23 #if defined(__vms) && defined(__DECCXX) && !__IEEE_FLOAT 24 #error "VAX floating point format is not supported!" 63 : archive_exception(other_exception)
64 , msg(
"requested integer size exceeds type size: ")
66 msg += lexical_cast<std::string, int>(invalid_size);
71 : archive_exception(other_exception)
72 , msg(
"cannot read a negative number into an unsigned type")
79 : archive_exception(other_exception)
80 , msg(
"serialization of illegal floating point value: ")
82 msg += lexical_cast<std::string>(abnormal);
86 const char*
what()
const throw() {
return msg.c_str(); }
const archive_version_type archive_version(BOOST_ARCHIVE_VERSION())
const signed char magic_byte
Definition: portable_archive_exception.hpp:31
Serialization stuff for CLHEP 'vector_3d'.
Definition: portable_archive_exception.hpp:27
const char * what() const
override the base class function with our message
Definition: portable_archive_exception.hpp:86
portable_archive_exception()
negative number in unsigned type
Definition: portable_archive_exception.hpp:70
Exception being thrown when serialization cannot proceed.
Definition: portable_archive_exception.hpp:56
portable_archive_exception(signed char invalid_size)
type size is not large enough for deserialized number
Definition: portable_archive_exception.hpp:62
~portable_archive_exception()
Definition: portable_archive_exception.hpp:87
portable_archive_exception(const T &abnormal)
serialization of inf, nan and denormals
Definition: portable_archive_exception.hpp:78
const unsigned no_infnan
Definition: portable_archive_exception.hpp:34
library_version_type archive_version_type
Definition: portable_archive_exception.hpp:37