mirror of
https://github.com/danog/amp.git
synced 2024-12-12 09:29:45 +01:00
16 lines
369 B
PHP
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");
|
||
|
}
|
||
|
}
|