EntityNotFoundException
extends CmsException
in package
Exception thrown when an entity cannot be found
Table of Contents
Properties
- $userMessage : string
Methods
- __construct() : mixed
- getUserMessage() : string
- Get user-friendly error message safe for display
- shouldLog() : bool
- Not found errors should be logged for security monitoring
Properties
$userMessage
protected
string
$userMessage
Methods
__construct()
public
__construct(string $entityType, int|string $identifier[, string $identifierType = 'ID' ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
- $entityType : string
-
Type of entity (e.g., "User", "Post")
- $identifier : int|string
-
Entity identifier (ID, slug, etc.)
- $identifierType : string = 'ID'
-
Type of identifier (e.g., "ID", "slug")
- $code : int = 0
-
Error code
- $previous : Throwable|null = null
-
Previous exception
getUserMessage()
Get user-friendly error message safe for display
public
getUserMessage() : string
Return values
stringshouldLog()
Not found errors should be logged for security monitoring
public
shouldLog() : bool