1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 17:37:50 +01:00
amp/stubs/FiberError.php
2020-11-21 00:18:14 -06:00

16 lines
399 B
PHP

<?php
/**
* Exception thrown due to invalid fiber actions, such as suspending from outside a fiber.
*/
final class FiberError extends Error
{
/**
* Constructor throws to prevent user code from throwing FiberError.
*/
public function __construct()
{
throw new \Error('The "FiberError" class is reserved for internal use and cannot be manually instantiated');
}
}