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