AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::PacketArrayMaxCapacityException Class Reference

#include "PacketUtilities.h"

Inheritance diagram for WorldPackets::PacketArrayMaxCapacityException:
ByteBufferException

Public Member Functions

 PacketArrayMaxCapacityException (std::size_t requestedSize, std::size_t sizeLimit)
 
- 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

◆ PacketArrayMaxCapacityException()

WorldPackets::PacketArrayMaxCapacityException::PacketArrayMaxCapacityException ( std::size_t  requestedSize,
std::size_t  sizeLimit 
)
61{
62 std::ostringstream builder;
63 builder << "Attempted to read more array elements from packet " << requestedSize << " than allowed " << sizeLimit;
64 message().assign(builder.str());
65}
std::string & message() noexcept
Definition: ByteBuffer.h:39