xref: /ext-fiber/stubs/FiberExit.php (revision d8986a73)
1<?php
2
3/**
4 * Exception thrown when destroying a fiber. This exception cannot be caught by user code.
5 */
6final class FiberExit extends Exception
7{
8    /**
9     * Constructor throws to prevent user code from throwing FiberExit.
10     */
11    public function __construct()
12    {
13        throw new \Error('The "FiberExit" class is reserved for internal use and cannot be manually instantiated');
14    }
15}
16