Index

eItemNotFound

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

class

eItemNotFound

eItemNotFound.php:13

Thrown by get / set / walk when a json-path (e.g. 'a/b/c') cannot be fully resolved: some INTERMEDIATE segment doesn't exist (a missing final segment is not an error there -- see those functions for the exact rule). Requires the constructing code to supply 'path' (the full path requested) and 'valid' (the longest resolvable prefix of it) in $context.

class MMO\core\exceptions\eItemNotFound extends MMO\core\exceptions\eNotFound implements Psr\Container\NotFoundExceptionInterface
Namespace
MMO\core\exceptions
Extends
eNotFound
Implements
NotFoundExceptionInterface
throw new eItemNotFound(__FUNCTION__, 'cannot reach [{path}]. Stopped at [{valid}]/{key} in [{ref}].', ['path' => 'a/b/c', 'valid' => 'a', 'key' => 'b', 'ref' => $ref]);

Methods3

getPath()

eItemNotFound.php:20
function getPath()
returnsthe full path that was requested, e.g. 'a/b/c'

getRemainingPath()

eItemNotFound.php:25
function getRemainingPath()
returnsthe part of the path that could not be resolved, e.g. 'b/c'

getValidPath()

eItemNotFound.php:15
function getValidPath()
returnsthe longest prefix of the requested path that WAS resolved, e.g. 'a' for path 'a/b/c'
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
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).
__construct($origin, $format, $context, $previous, $code)eRuntime
__toString()Exception
__wakeup()Exception