Page MenuHomeWickedGov Phorge

TimeoutException.php
No OneTemporary

Size
540 B
Referenced Files
None
Subscribers
None

TimeoutException.php

<?php
namespace Wikimedia\RequestTimeout;
use Wikimedia\NormalizedException\NormalizedException;
/**
* The base class for timeout exceptions thrown by this library
*/
class TimeoutException extends NormalizedException {
/** @var float */
private $limit;
public function __construct( $message, $limit ) {
parent::__construct( $message, [ 'limit' => $limit ] );
$this->limit = $limit;
}
/**
* Get the limit which was exceeded, in seconds.
*
* @return float
*/
public function getLimit() {
return $this->limit;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Oct 4, 01:24 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
81/eb/aea1e3c1ffe972da7a216ebcc956
Default Alt Text
TimeoutException.php (540 B)

Event Timeline