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