Message
API reference › Debug Core › Exception › Message
Exception message templates authored by this package.
Use Message::getMessage() to format a template with sprintf() arguments.
| Case | Value | Description |
|---|---|---|
ACTIVE_TAB_INDEX_INVALID | 'The active tab index must identify a supplied tab.' | Indicates that the active tab index does not identify a supplied tab. |
BODY_SIZE_INVALID | 'The maximum body size must be greater than zero.' | Indicates that the maximum captured body size is not positive. |
COLLECTOR_ID_DUPLICATE | 'Duplicate debug collector ID: %s.' | Indicates that a collector ID is registered more than once. |
COLLECTOR_ID_EMPTY | 'Debug collector ID must not be empty.' | Indicates that a collector ID is empty. |
DATA_DIRECTORY_CREATE_FAILED | 'Unable to create debug data directory: %s' | Indicates that the debug data directory cannot be created. |
DATA_DIRECTORY_MODE_FAILED | 'Unable to apply debug data directory mode: %s' | Indicates that permissions cannot be applied to the debug data directory. |
DATA_FILE_MODE_FAILED | 'Unable to apply debug data file mode for: %s' | Indicates that permissions cannot be applied to a debug data file. |
DATA_FILE_READ_FAILED | 'Unable to read debug data file: %s' | Indicates that a debug data file cannot be read. |
DATA_FILE_REMOVE_FAILED | 'Unable to remove debug data file: %s' | Indicates that a debug data file cannot be removed. |
DATA_FILE_REPLACE_FAILED | 'Unable to replace debug data file: %s' | Indicates that a debug data file cannot be replaced. |
DATA_FILE_ROLLBACK_FAILED | 'Unable to roll back debug data file: %s' | Indicates that a debug data file cannot be restored during rollback. |
DATA_PATH_NOT_DIRECTORY | 'Debug data path is not a directory: %s' | Indicates that the configured debug data path is not a directory. |
HISTORY_SIZE_INVALID | 'Invalid debug history size: %s' | Indicates that the configured history size is invalid. |
LOCK_ACQUIRE_FAILED | 'Unable to acquire debug data lock: %s' | Indicates that the debug data lock cannot be acquired. |
LOCK_FILE_OPEN_FAILED | 'Unable to open debug data lock file: %s' | Indicates that the debug data lock file cannot be opened. |
MANIFEST_EMPTY | 'Debug manifest is empty: %s' | Indicates that the persisted debug manifest is empty. |
MANIFEST_READ_ERROR | 'Unable to read debug manifest.' | Indicates a manifest read failure while preserving the original exception. |
MANIFEST_READ_FAILED | 'Unable to read debug manifest: %s' | Indicates that the specified debug manifest cannot be read. |
N_PLUS_ONE_THRESHOLD_INVALID | 'The N+1 threshold must be at least two.' | Indicates that the N+1 detection threshold is less than two. |
PANEL_ICON_INVALID | 'Debug panel icon key is invalid: "%s".' | Indicates that a panel icon key does not match the accepted icon key shape. |
PANEL_ID_DUPLICATE | 'Duplicate debug panel ID: %s.' | Indicates that a panel ID is registered more than once. |
PANEL_ID_INVALID | 'Debug panel ID must be a non-empty identifier without surrounding whitespace: "%s".' | Indicates that a panel ID is empty or carries surrounding whitespace, which is rejected instead of trimmed. |
PANEL_OPTION_TYPE_INVALID | 'Debug panel option \ | Indicates that a panel option value does not satisfy its expected type. |
PANEL_OPTION_UNKNOWN | 'Unknown debug panel option \ | Indicates that a panel entry carries a key outside the accepted options. |
PANEL_OVERRIDE_UNREGISTERED | 'Debug panel override targets an unregistered ID: %s.' | Indicates that a panel override targets an ID no provider registered and does not disable it. |
PANEL_POSITION_BUILT_IN | 'Debug panel position must not be set on the built-in panel: %s.' | Indicates that a panel override sets a position on a built-in panel, whose order is fixed. |
PANEL_TITLE_EMPTY | 'Debug panel title must not be empty.' | Indicates that a panel title is empty. |
REGISTRATION_ENABLED_INVALID | 'Debug registration \ | Indicates that a registration entry declares a non-boolean enabled option. |
REGISTRATION_ENTRY_INVALID | 'Debug registration \ | Indicates that a registration entry is neither a class string nor an array declaring a class string. |
REGISTRATION_ID_MISMATCH | 'Debug %s registered as \ | Indicates that a registration key differs from the ID the registered collector or panel declares. |
ROUTE_DEFINITION_INVALID | 'Route definition key \ | Indicates that a route definition field does not satisfy its expected shape. |
SENSITIVE_KEY_PATTERN_INVALID | 'Sensitive key pattern "%s" is not a valid PCRE pattern.' | Indicates that a sensitive key pattern is not a valid PCRE pattern. |
SENSITIVE_KEY_PREFIX_EMPTY | 'Sensitive key prefixes must not be empty.' | Indicates that a sensitive key prefix is empty. |
SIDEBAR_GROUP_LABEL_EMPTY | 'Sidebar navigation group labels must not be empty.' | Indicates that a sidebar navigation group label is empty. |
SNAPSHOT_EMPTY | 'Debug snapshot is empty: %s' | Indicates that a persisted debug snapshot is empty. |
SNAPSHOT_READ_FAILED | 'Unable to read debug snapshot: %s' | Indicates that a debug snapshot cannot be read. |
SNAPSHOT_TAG_INVALID | 'Invalid debug snapshot tag: %s' | Indicates that a debug snapshot tag is invalid. |
SNAPSHOT_TAG_MISMATCH | 'Debug snapshot tag does not match its filename: %s' | Indicates that a snapshot tag does not match its filename. |
SNAPSHOT_VALUE_INVALID | 'Invalid debug snapshot value at \ | Indicates that a snapshot value violates the expected schema at a payload path. |
TEMPORARY_FILE_WRITE_FAILED | 'Unable to write temporary debug data file for: %s' | Indicates that a temporary debug data file cannot be written. |
TRANSACTION_JOURNAL_INVALID | 'Invalid debug storage transaction journal: %s' | Indicates that the storage transaction journal is invalid. |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
getMessage() | Formats the message without changing diagnostic argument values. | Message |
Method details
Section titled “Method details”getMessage()
Section titled “getMessage() ”public function getMessage(int|string ...$argument): stringFormats the message without changing diagnostic argument values.
Parameters
| Parameter | Type | Description |
|---|---|---|
...$argument | int| | Values to insert into the message template. |
Returns
string: Formatted exception message.