Horizon Official Technical Documentation
ByteBufferPositionException Class Reference

#include <ByteBuffer.hpp>

+ Inheritance diagram for ByteBufferPositionException:
+ Collaboration diagram for ByteBufferPositionException:

Public Member Functions

 ByteBufferPositionException (bool add, size_t pos, size_t size, size_t valueSize)
 
 ~ByteBufferPositionException () 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

◆ ByteBufferPositionException()

ByteBufferPositionException::ByteBufferPositionException ( bool  add,
size_t  pos,
size_t  size,
size_t  valueSize 
)
37{
38 std::ostringstream ss;
39
40 ss << "Attempted to " << (add ? "put" : "get") << " value with size: "
41 << valueSize << " in ByteBuffer (pos: " << pos << " size: " << size
42 << ")";
43
44 message().assign(ss.str());
45}
std::string & message()
Definition: ByteBuffer.hpp:55

References ByteBufferException::message().

+ Here is the call graph for this function:

◆ ~ByteBufferPositionException()

ByteBufferPositionException::~ByteBufferPositionException ( )
throw (
)
inline
66{ }

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