1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 17:37:50 +01:00
amp/stubs/FiberError.php

16 lines
395 B
PHP
Raw Normal View History

2020-09-24 18:52:22 +02:00
<?php
/**
* Exception thrown due to invalid fiber actions, such as resuming a terminated fiber.
2020-09-24 18:52:22 +02:00
*/
final class FiberError extends Error
{
/**
2020-11-21 07:18:14 +01:00
* Constructor throws to prevent user code from throwing FiberError.
2020-09-24 18:52:22 +02:00
*/
2020-11-21 07:18:14 +01:00
public function __construct()
2020-09-24 18:52:22 +02:00
{
2020-11-21 07:18:14 +01:00
throw new \Error('The "FiberError" class is reserved for internal use and cannot be manually instantiated');
2020-09-24 18:52:22 +02:00
}
}