42 case Malformed:
return "malformed hyperlink";
43 case NotAllowed:
return "not allowed hyperlink";
44 default:
return "hyperlink";
50 if (std::size_t size = value.size(); size > maxSize)
56 if (!utf8::is_valid(value.begin(), value.end()))
68 if (value.find(
'|') != std::string::npos)
78 :
ByteBufferException(
Trinity::StringFormat(
"Attempted to read more array elements from packet {} than allowed {}", requestedSize, sizeLimit))
static char const * GetReasonText(Reason reason)
InvalidHyperlinkException(std::string_view value, Reason reason)
InvalidStringValueException(char const *type, std::string_view value)
InvalidUtf8ValueException(std::string_view value)
PacketArrayMaxCapacityException(std::size_t requestedSize, std::size_t sizeLimit)
bool TC_GAME_API CheckAllLinks(std::string_view str)
void OnInvalidArraySize(std::size_t requestedSize, std::size_t sizeLimit)
static void Validate(std::string_view value, std::size_t maxSize)
static void Validate(std::string_view value)
static void Validate(std::string_view value)
static void Validate(std::string_view value)