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

#include <ByteBuffer.h>

Public Member Functions

 ByteBufferPositionException (bool add, size_t pos, size_t size, size_t valueSize)
 
 ~ByteBufferPositionException () 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

ByteBufferPositionException::ByteBufferPositionException ( bool  add,
size_t  pos,
size_t  size,
size_t  valueSize 
)
30 {
31  std::ostringstream ss;
32 
33  ss << "Attempted to " << (add ? "put" : "get") << " value with size: "
34  << valueSize << " in ByteBuffer (pos: " << pos << " size: " << size
35  << ")";
36 
37  message().assign(ss.str());
38 }
std::string & message()
Definition: ByteBuffer.h:48

+ Here is the call graph for this function:

ByteBufferPositionException::~ByteBufferPositionException ( )
throw (
)
inline
59 { }

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