MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

eInvalidPage

MMO\editor\exceptions · 1 symbole · générée le 27 Oct 2026

class

eInvalidPage

eInvalidPage.php:14

What a client sent for a page is not valid (Pages::saveDraft): a 422, with what is wrong field by field in $errors -- slug, sections/2/data/title... -- for the page editor to show next to each one.

class MMO\editor\exceptions\eInvalidPage extends MMO\core\exceptions\eInvalid
Espace de noms
MMO\editor\exceptions
Étend
eInvalid
try {$pages->saveDraft($user, $page, $input);} catch (eInvalidPage $e) {return ['errors' => $e->errors];}

Propriétés1

errors

readonly
readonly array $errors
Type
array

Méthodes1

Membres hérités (29)
PropriétésDéclaré parDescription
codeException
contexteInvalid
fileException
formateInvalid
lineException
ListenerseInvalid
messageException
MéthodesDéclaré parDescription
AddListener($handler, $order)eInvalidRegister a listener directly (as opposed to ConnectListeners's attribute-based discovery).
ConnectListeners($obj)eInvalidScan $obj's methods for #[Listen(EventClass::class)] attributes and register each one as a listener on the matching event class.
DisconnectListeners($obj)eInvalidUndo a previous ConnectListeners: removes every listener that connect had registered for $obj on this event class.
dispatch()eInvalidInvoke every GetListeners listener with $this.
getCode()Exception
getContext()eInvalid
getFile()Exception
getFormat()eInvalid
getLine()Exception
GetListeners()eInvalidCollect 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()eInvalid
getPrevious()Exception
getTrace()Exception
getTraceAsString()Exception
HasListener($handler)eInvalid
jsonSerialize()eInvalid\JsonSerializable::jsonSerialize
RemoveListener($handler)eInvalidRemove the last added handler from the listeners.
Send($args)eInvalidConstruct a new instance of this class with $args, then dispatch it to every listener.
SetListenerOrder($handler, $order)eInvalidChange 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