mirror of
https://github.com/danog/amp.git
synced 2024-12-12 09:29:45 +01:00
16 lines
395 B
PHP
16 lines
395 B
PHP
<?php
|
|
|
|
/**
|
|
* Exception thrown due to invalid fiber actions, such as resuming a terminated fiber.
|
|
*/
|
|
final class FiberError extends Error
|
|
{
|
|
/**
|
|
* Constructor throws to prevent user code from throwing FiberError.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
throw new \Error('The "FiberError" class is reserved for internal use and cannot be manually instantiated');
|
|
}
|
|
}
|