PhpParser\ParserAbstract::checkTryCatch PHP Метод

checkTryCatch() защищенный Метод

protected checkTryCatch ( TryCatch $node )
$node PhpParser\Node\Stmt\TryCatch
    protected function checkTryCatch(TryCatch $node) {
        if (empty($node->catches) && null === $node->finally) {
            $this->emitError(new Error(
                'Cannot use try without catch or finally', $node->getAttributes()
            ));
        }
    }