class ActionNotAllowed extends Logic implements ErrorThe action cannot perform for an object in a the current state. Although in general it is allowed.
$user = new User();
$user->name = 'John';
$user->email = 'john@example.com';
// $user->save();
$user->delete(); // Action "delete" is not allowed for user (he has not yet created)Access by index is pointless in this context.
$action- the action name$object- the target object or its name$reason- the description of the reason
getAction():stringgetObject():string|objectgetReason():string