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

#include "ByteBuffer.h"

Inheritance diagram for ByteBufferInvalidValueException:
ByteBufferException WorldPackets::InvalidStringValueException WorldPackets::IllegalHyperlinkException WorldPackets::InvalidHyperlinkException WorldPackets::InvalidUtf8ValueException

Public Member Functions

 ByteBufferInvalidValueException (char const *type, char const *value)
 
 ~ByteBufferInvalidValueException () 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

◆ ByteBufferInvalidValueException()

ByteBufferInvalidValueException::ByteBufferInvalidValueException ( char const *  type,
char const *  value 
)
53{
54 message().assign(Acore::StringFormat("Invalid {} value ({}) found in ByteBuffer", type, value));
55}
std::string StringFormat(FormatString< Args... > fmt, Args &&... args)
Default AC string format function.
Definition: StringFormat.h:34
std::string & message() noexcept
Definition: ByteBuffer.h:39

References ByteBufferException::message(), and Acore::StringFormat().

◆ ~ByteBufferInvalidValueException()

ByteBufferInvalidValueException::~ByteBufferInvalidValueException ( )
overridedefaultnoexcept