AzerothCore 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, std::size_t pos, std::size_t size, std::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,
std::size_t  pos,
std::size_t  size,
std::size_t  valueSize 
)
31{
32 std::ostringstream ss;
33
34 ss << "Attempted to " << (add ? "put" : "get") << " value with size: "
35 << valueSize << " in ByteBuffer (pos: " << pos << " size: " << size
36 << ")";
37
38 message().assign(ss.str());
39}
std::string & message() noexcept
Definition: ByteBuffer.h:39

References ByteBufferException::message().

◆ ~ByteBufferPositionException()

ByteBufferPositionException::~ByteBufferPositionException ( )
overridedefaultnoexcept