TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::PacketArrayMaxCapacityException Class Reference

#include <PacketUtilities.h>

Public Member Functions

 PacketArrayMaxCapacityException (std::size_t requestedSize, std::size_t sizeLimit)
 
- Public Member Functions inherited from ByteBufferException
 ~ByteBufferException () throw ()
 
char constwhat () const override throw ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

WorldPackets::PacketArrayMaxCapacityException::PacketArrayMaxCapacityException ( std::size_t  requestedSize,
std::size_t  sizeLimit 
)
inline
57  {
58  std::ostringstream builder;
59  builder << "Attempted to read more array elements from packet " << requestedSize << " than allowed " << sizeLimit;
60  message().assign(builder.str());
61  }
std::string & message()
Definition: ByteBuffer.h:48

+ Here is the call graph for this function:


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