Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| RequestTimeoutException | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | declare( strict_types = 1 ); |
| 3 | |
| 4 | namespace Wikimedia\RequestTimeout; |
| 5 | |
| 6 | /** |
| 7 | * An exception which is thrown when the request timeout expires. |
| 8 | */ |
| 9 | class RequestTimeoutException extends TimeoutException { |
| 10 | /** |
| 11 | * @param float $limit The limit (in seconds) which has expired |
| 12 | */ |
| 13 | public function __construct( $limit ) { |
| 14 | parent::__construct( "The maximum execution time of {limit} seconds was exceeded", |
| 15 | $limit ); |
| 16 | } |
| 17 | } |