ExactCancellationCatchRule
class ExactCancellationCatchRule implements Rule
Reports an exact CanceledException catch backed by a later catch of every exception.
A cleanup or callback failure can carry cancellation as its previous exception. The exact catch misses it, so the later catch handles the canceled operation as an ordinary failure.
Methods
__construct(CoroutineRuleHelper $coroutineRuleHelper)
Create a new exact cancellation catch rule instance.
string
getNodeType()
Get the node type the rule checks.
array
processNode(Node $node, Scope $scope)
Report exact cancellation catches that rethrow or keep the cancellation, followed by a catch of every exception.
Details
at line 32
__construct(CoroutineRuleHelper $coroutineRuleHelper)
Create a new exact cancellation catch rule instance.
at line 40
string
getNodeType()
Get the node type the rule checks.
at line 52
array
processNode(Node $node, Scope $scope)
Report exact cancellation catches that rethrow or keep the cancellation, followed by a catch of every exception.