TrinityCore
Loading...
Searching...
No Matches
WorldPackets::InvalidHyperlinkException Class Reference

#include <PacketUtilities.h>

+ Inheritance diagram for WorldPackets::InvalidHyperlinkException:

Public Types

enum  Reason : uint8 { Malformed , NotAllowed }
 

Public Member Functions

 InvalidHyperlinkException (std::string_view value, Reason reason)
 
Reason GetReason () const
 
- Public Member Functions inherited from WorldPackets::InvalidStringValueException
 InvalidStringValueException (char const *type, std::string_view value)
 
std::string const & GetInvalidValue () const
 
- Public Member Functions inherited from ByteBufferInvalidValueException
 ByteBufferInvalidValueException (char const *type, std::string_view value)
 
- Public Member Functions inherited from ByteBufferException
 ByteBufferException ()=default
 
 ByteBufferException (std::string &&message) noexcept
 
char const * what () const noexcept override
 

Static Private Member Functions

static char const * GetReasonText (Reason reason)
 

Private Attributes

Reason _reason
 

Additional Inherited Members

- Protected Attributes inherited from ByteBufferException
std::string msg_
 

Detailed Description

Definition at line 47 of file PacketUtilities.h.

Member Enumeration Documentation

◆ Reason

Enumerator
Malformed 
NotAllowed 

Definition at line 50 of file PacketUtilities.h.

Constructor & Destructor Documentation

◆ InvalidHyperlinkException()

WorldPackets::InvalidHyperlinkException::InvalidHyperlinkException ( std::string_view  value,
Reason  reason 
)
explicit

Definition at line 33 of file PacketUtilities.cpp.

Member Function Documentation

◆ GetReason()

Reason WorldPackets::InvalidHyperlinkException::GetReason ( ) const
inline

Definition at line 58 of file PacketUtilities.h.

+ Here is the caller graph for this function:

◆ GetReasonText()

char const * WorldPackets::InvalidHyperlinkException::GetReasonText ( Reason  reason)
staticprivate

Definition at line 38 of file PacketUtilities.cpp.

Member Data Documentation

◆ _reason

Reason WorldPackets::InvalidHyperlinkException::_reason
private

Definition at line 63 of file PacketUtilities.h.


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