Skip to content
PHP Ecosystem
Explore

Message

API reference › HTML Attribute › Exception › Message

enumUIAwesome\Html\Attribute\Exception\Message
Backed bystring
Sourcesrc/Exception/Message.php

Represents error message templates for attribute exceptions.

Use Message::getMessage() to format the template with sprintf() arguments.

CaseValueDescription
ATTRIBUTE_INVALID_VALUE"Invalid value '%s' for attribute '%s'. Expected: '%s'."Error when an attribute value is invalid.
MethodDescriptionDefined by
getMessage()Returns the formatted message string for the error case.Message
public function getMessage(int|string ...$argument): string

Returns the formatted message string for the error case.

Parameters

ParameterTypeDescription
...$argumentint|stringValues to insert into the message template.

Returns

string: Formatted error message with interpolated arguments.