src/Exception/TimeoutException.php
public static function build(\Exception $e, $timeout)
    {
        return new self(
            sprintf('The connection timed out after %d sec while awaiting incoming data', $timeout),
            $e->getCode(),
            $e
        );
    }
public static function build(\Exception $e, $timeout)
    {
        return new self(
            sprintf('The connection timed out after %d sec while awaiting incoming data', $timeout),
            $e->getCode(),
            $e
        );
    }
Build the exception from another timeout exception.

@param \Exception $e
@param int        $timeout

@return TimeoutException