1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 17:09:40 +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");
}
}