/** * AddressIllegalException constructor. * * @param string $address */ public function __construct($address) { parent::__construct(sprintf('The address "%s" is illegal.', $address)); }
/** * AddressIllegalException constructor. * * @param string $host * @param $port */ public function __construct($host, $port) { parent::__construct(sprintf('Server %s:%s connection fail.', $host, $port)); }
public function __construct($scheme) { parent::__construct(sprintf("Can't support this scheme: %s", $scheme)); }