AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ByteBufferPositionException Class Reference

#include "ByteBuffer.h"

Inheritance diagram for ByteBufferPositionException:
ByteBufferException

Public Member Functions

 ByteBufferPositionException (bool add, size_t pos, size_t size, size_t valueSize)
 
 ~ByteBufferPositionException () noexcept override=default
 
- Public Member Functions inherited from ByteBufferException
 ~ByteBufferException () noexcept override=default
 
char const * what () const noexcept override
 

Additional Inherited Members

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

Detailed Description

Constructor & Destructor Documentation

◆ ByteBufferPositionException()

ByteBufferPositionException::ByteBufferPositionException ( bool  add,
size_t  pos,
size_t  size,
size_t  valueSize 
)
32{
33 std::ostringstream ss;
34
35 ss << "Attempted to " << (add ? "put" : "get") << " value with size: "
36 << valueSize << " in ByteBuffer (pos: " << pos << " size: " << size
37 << ")";
38
39 message().assign(ss.str());
40}
std::string & message() noexcept
Definition: ByteBuffer.h:39

References ByteBufferException::message().

◆ ~ByteBufferPositionException()

ByteBufferPositionException::~ByteBufferPositionException ( )
overridedefaultnoexcept