Horizon Official Technical Documentation
ByteBufferSourceException Class Reference

#include <ByteBuffer.hpp>

+ Inheritance diagram for ByteBufferSourceException:
+ Collaboration diagram for ByteBufferSourceException:

Public Member Functions

 ByteBufferSourceException (size_t pos, size_t size, size_t valueSize)
 
 ~ByteBufferSourceException () throw ()
 
- Public Member Functions inherited from ByteBufferException
 ~ByteBufferException () throw ()
 
char const * what () const override throw ()
 

Additional Inherited Members

- Protected Member Functions inherited from ByteBufferException
std::string & message () throw ()
 

Constructor & Destructor Documentation

◆ ByteBufferSourceException()

ByteBufferSourceException::ByteBufferSourceException ( size_t  pos,
size_t  size,
size_t  valueSize 
)
49{
50 std::ostringstream ss;
51
52 ss << "Attempted to put a "
53 << (valueSize > 0 ? "NULL-pointer" : "zero-sized value")
54 << " in ByteBuffer (pos: " << pos << " size: " << size << ")";
55
56 message().assign(ss.str());
57}
std::string & message()
Definition: ByteBuffer.hpp:55

References ByteBufferException::message().

+ Here is the call graph for this function:

◆ ~ByteBufferSourceException()

ByteBufferSourceException::~ByteBufferSourceException ( )
throw (
)
inline
74{ }

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