Index

e404

MMO\core\exceptions · 1 symbol · generated 30 Sep 2026

class

e404

e404.php:12

"Not found" exception for a route/entity that couldn't be resolved while handling an HTTP request. Always carries status code 404 (fixed, unlike eServer's configurable $code).

class MMO\core\exceptions\e404 extends MMO\core\exceptions\eServer
Namespace
MMO\core\exceptions
Extends
eServer
throw new e404($this, $route, 'unknown entity [{uid}].', ['uid' => $uid]);

Methods1

__construct($origin, $request, $message, $context, $previous)

e404.php:21
function __construct( object|string $origin, Psr\Http\Message\RequestInterface|MMO\core\server\Route $request, string $message, array $context = [], ?Throwable $previous = null )
$originobject | stringthe exception origin (object throwing)
$requestRequestInterface | Routethe request being handled when the error occurred (a Route is resolved to its underlying request via Route::getRequest())
$messagestringthe message. Can contain placeholders {xxx} replaced by values in context. {origin} is replaced by $origin.
$context = []arraythe message context.
$previous = nullnull | Throwable
Inherited members (30)
PropertiesDeclared byDescription
codeException
contexteRuntime
fileException
formateRuntime
lineException
ListenerseRuntime
messageException
MethodsDeclared byDescription
AddListener($handler, $order)eRuntimeRegister a listener directly (as opposed to ConnectListeners's attribute-based discovery).
ConnectListeners($obj)eRuntimeScan $obj's methods for #[Listen(EventClass::class)] attributes and register each one as a listener on the matching event class.
DisconnectListeners($obj)eRuntimeUndo a previous ConnectListeners: removes every listener that connect had registered for $obj on this event class.
dispatch()eRuntimeInvoke every GetListeners listener with $this.
getCode()Exception
getContext()eRuntime
getFile()Exception
getFormat()eRuntime
getLine()Exception
GetListeners()eRuntimeCollect every listener for this class, including those registered on its parent classes (so a subclass event is also caught by listeners of its parent event), sorted by ascending $order (ties keep …
getMessage()Exception
getOrigin()eRuntime
getPrevious()Exception
getRequest()eServer
getTrace()Exception
getTraceAsString()Exception
HasListener($handler)eRuntime
jsonSerialize()eRuntime\JsonSerializable::jsonSerialize
RemoveListener($handler)eRuntimeRemove the last added handler from the listeners.
Send($args)eRuntimeConstruct a new instance of this class with $args, then dispatch it to every listener.
SetListenerOrder($handler, $order)eRuntimeChange the order of an already-registered listener, whether added directly via AddListener or indirectly via ConnectListeners (which also stores its [$obj, $methodName] callables here).
__toString()Exception
__wakeup()Exception