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