1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 17:37:50 +01:00
amp/stubs/FiberError.php
2020-09-24 12:53:32 -05:00

16 lines
369 B
PHP

<?php
/**
* Exception thrown due to invalid fiber actions, such as suspending from outside a fiber.
*/
final class FiberError extends Error
{
/**
* Private constructor to prevent user code from throwing FiberError.
*/
public function __construct(string $message)
{
throw new \Error("FiberError cannot be constructed manually");
}
}