Collage  0.6.1
Public Member Functions
co::DataStreamArchiveException Class Reference

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

#include <dataStreamArchiveException.h>

List of all members.

Public Member Functions

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

Detailed Description

Exception being thrown when serialization cannot proceed.

There are several situations in which the DataStream 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).

Definition at line 48 of file dataStreamArchiveException.h.


The documentation for this class was generated from the following file:
Generated on Mon Nov 26 2012 14:41:44 for Collage 0.6.1 by  doxygen 1.7.6.1