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

#include <portable_binary_oarchive.hpp>

Inheritance diagram for boost::archive::portable_binary_oarchive_exception:
Collaboration diagram for boost::archive::portable_binary_oarchive_exception:

Public Types

enum  exception_code { invalid_flags }

Public Member Functions

 portable_binary_oarchive_exception (exception_code c=invalid_flags)
virtual const char * what () const throw ( )

Public Attributes

enum boost::archive::portable_binary_oarchive_exception::exception_code m_exception_code

Detailed Description

Definition at line 40 of file portable_binary_oarchive.hpp.

Member Enumeration Documentation

◆ exception_code

Enumerator
invalid_flags 

Definition at line 44 of file portable_binary_oarchive.hpp.

44 {
enum boost::archive::portable_binary_oarchive_exception::exception_code m_exception_code

Constructor & Destructor Documentation

◆ portable_binary_oarchive_exception()

boost::archive::portable_binary_oarchive_exception::portable_binary_oarchive_exception ( exception_code c = invalid_flags)
inline

Definition at line 47 of file portable_binary_oarchive.hpp.

47 :
48 boost::archive::archive_exception(boost::archive::archive_exception::other_exception),
50 {}

Member Function Documentation

◆ what()

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

Definition at line 51 of file portable_binary_oarchive.hpp.

52 {
53 const char *msg = "programmer error";
54 switch(m_exception_code){
55 case invalid_flags:
56 msg = "cannot be both big and little endian";
57 break;
58 default:
59 msg = boost::archive::archive_exception::what();
60 assert(false);
61 break;
62 }
63 return msg;
64 }

Member Data Documentation

◆ m_exception_code

enum boost::archive::portable_binary_oarchive_exception::exception_code boost::archive::portable_binary_oarchive_exception::m_exception_code

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