Bayeux  3.4.1
Core Foundation library for SuperNEMO
Public Member Functions | List of all members
boost::archive::portable_archive_exception Class Reference

Exception being thrown when serialization cannot proceed. More...

#include <bayeux/boost/archive/portable_archive_exception.hpp>

Inheritance diagram for boost::archive::portable_archive_exception:

Public Member Functions

 portable_archive_exception (signed char invalid_size)
 type size is not large enough for deserialized number More...
 
 portable_archive_exception ()
 negative number in unsigned type More...
 
template<typename T >
 portable_archive_exception (const T &abnormal)
 serialization of inf, nan and denormals More...
 
const char * what () const throw ()
 override the base class function with our message More...
 
 ~portable_archive_exception () throw ()
 

Detailed Description

Exception being thrown when serialization cannot proceed.

There are several situations in which the portable archives may fail and hence throw an exception:

  1. deserialization of an integer value that exceeds the range of the type
  2. (de)serialization of inf/nan through an archive with no_infnan flag set
  3. deserialization of a denormalized value without the floating point type supporting denormalized numbers

Note that this exception will also be thrown if you mixed up your stream position and accidentially interpret some value for size data (in this case the reported size will be totally amiss most of the time).

Constructor & Destructor Documentation

◆ portable_archive_exception() [1/3]

boost::archive::portable_archive_exception::portable_archive_exception ( signed char  invalid_size)
inline

type size is not large enough for deserialized number

◆ portable_archive_exception() [2/3]

boost::archive::portable_archive_exception::portable_archive_exception ( )
inline

negative number in unsigned type

◆ portable_archive_exception() [3/3]

template<typename T >
boost::archive::portable_archive_exception::portable_archive_exception ( const T &  abnormal)
inline

serialization of inf, nan and denormals

◆ ~portable_archive_exception()

boost::archive::portable_archive_exception::~portable_archive_exception ( )
throw (
)
inline

Member Function Documentation

◆ what()

const char* boost::archive::portable_archive_exception::what ( ) const
throw (
)
inline

override the base class function with our message


The documentation for this class was generated from the following file: