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