RejectOperations
extends MagicFilterException
in package
FinalYes
Internal flow-control exception: raised by an operation to indicate it cannot resolve against the current value (missing attribute, key error, type mismatch, cast failure, …). Caught by `MagicFilter::_resolve` which then marks the remaining non-`important` operations as rejected and threads `null` through the chain until either an `important` operation runs or the chain terminates.
Mirrors upstream magic_filter.exceptions.RejectOperations
(magic_filter/exceptions.py:18-19).
The wrapped Throwable is the underlying cause (e.g. the
AttributeError from a missing field). Upstream uses raise … from e;
PHP achieves the same via the third $previous argument to
Exception::__construct.
Table of Contents
Methods
- __construct() : mixed
Methods
__construct()
public
__construct([Throwable|null $previous = null ]) : mixed
Parameters
- $previous : Throwable|null = null