AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ByteBufferSourceException Class Reference

#include "ByteBuffer.h"

Inheritance diagram for ByteBufferSourceException:
ByteBufferException

Public Member Functions

 ByteBufferSourceException (std::size_t pos, std::size_t size, std::size_t valueSize)
 
 ~ByteBufferSourceException () 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

◆ ByteBufferSourceException()

ByteBufferSourceException::ByteBufferSourceException ( std::size_t  pos,
std::size_t  size,
std::size_t  valueSize 
)
42{
43 std::ostringstream ss;
44
45 ss << "Attempted to put a "
46 << (valueSize > 0 ? "NULL-pointer" : "zero-sized value")
47 << " in ByteBuffer (pos: " << pos << " size: " << size << ")";
48
49 message().assign(ss.str());
50}
std::string & message() noexcept
Definition: ByteBuffer.h:39

References ByteBufferException::message().

◆ ~ByteBufferSourceException()

ByteBufferSourceException::~ByteBufferSourceException ( )
overridedefaultnoexcept