1
0
mirror of https://github.com/danog/amp.git synced 2024-12-03 18:07:57 +01:00
amp/stubs/FiberError.php

16 lines
369 B
PHP
Raw Normal View History

2020-09-24 18:52:22 +02:00
<?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");
}
}