1
0
mirror of https://github.com/danog/amp.git synced 2025-01-23 05:41:25 +01:00
amp/stubs/FiberError.php

16 lines
395 B
PHP
Raw Normal View History

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