Electroneum
Loading...
Searching...
No Matches
boost::archive::portable_binary_iarchive_exception Class Reference

#include <portable_binary_iarchive.hpp>

Inheritance diagram for boost::archive::portable_binary_iarchive_exception:
Collaboration diagram for boost::archive::portable_binary_iarchive_exception:

Public Types

enum  exception_code { incompatible_integer_size }

Public Member Functions

 portable_binary_iarchive_exception (exception_code c=incompatible_integer_size)
virtual const char * what () const throw ( )

Public Attributes

enum boost::archive::portable_binary_iarchive_exception::exception_code m_exception_code

Detailed Description

Definition at line 41 of file portable_binary_iarchive.hpp.

Member Enumeration Documentation

◆ exception_code

Enumerator
incompatible_integer_size 

Definition at line 45 of file portable_binary_iarchive.hpp.

45 {
enum boost::archive::portable_binary_iarchive_exception::exception_code m_exception_code

Constructor & Destructor Documentation

◆ portable_binary_iarchive_exception()

boost::archive::portable_binary_iarchive_exception::portable_binary_iarchive_exception ( exception_code c = incompatible_integer_size)
inline

Definition at line 48 of file portable_binary_iarchive.hpp.

48 :
49 boost::archive::archive_exception(boost::archive::archive_exception::other_exception),
51 {}

Member Function Documentation

◆ what()

virtual const char * boost::archive::portable_binary_iarchive_exception::what ( ) const
throw ( )
inlinevirtual

Definition at line 52 of file portable_binary_iarchive.hpp.

53 {
54 const char *msg = "programmer error";
55 switch(m_exception_code){
57 msg = "integer cannot be represented";
58 break;
59 default:
60 msg = boost::archive::archive_exception::what();
61 assert(false);
62 break;
63 }
64 return msg;
65 }

Member Data Documentation

◆ m_exception_code

enum boost::archive::portable_binary_iarchive_exception::exception_code boost::archive::portable_binary_iarchive_exception::m_exception_code

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