2020-09-24 11:52:22 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2020-12-09 11:22:47 -06:00
|
|
|
* Exception thrown due to invalid fiber actions, such as resuming a terminated fiber.
|
2020-09-24 11:52:22 -05:00
|
|
|
*/
|
|
|
|
final class FiberError extends Error
|
|
|
|
{
|
|
|
|
/**
|
2020-11-21 00:18:14 -06:00
|
|
|
* Constructor throws to prevent user code from throwing FiberError.
|
2020-09-24 11:52:22 -05:00
|
|
|
*/
|
2020-11-21 00:18:14 -06:00
|
|
|
public function __construct()
|
2020-09-24 11:52:22 -05:00
|
|
|
{
|
2020-11-21 00:18:14 -06:00
|
|
|
throw new \Error('The "FiberError" class is reserved for internal use and cannot be manually instantiated');
|
2020-09-24 11:52:22 -05:00
|
|
|
}
|
|
|
|
}
|