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

#include <ByteBuffer.h>

Public Member Functions

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

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

+ Here is the call graph for this function:

ByteBufferSourceException::~ByteBufferSourceException ( )
throw (
)
inline
67 { }

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