/** * @param string $sockError */ public function __construct($sockError) { parent::__construct('An error has occurred during data uploading.' . 'Socket error : ' . $sockError); }
public function __construct() { parent::__construct('Can\'t get anymore data. The packet is empty.'); }
/** * Constructor * * @param string message * @param float timeout */ public function __construct($message, $timeout) { parent::__construct($message); $this->timeout = $timeout; }
/** * Construct the exception. * * @param SocketInterface $socket Socket object * @param string $message The Exception message to throw. * @param int $code The Exception code. * @param \Exception $previous The previous exception used for the exception chaining. */ public function __construct(SocketInterface $socket, $message = '', $code = 0, \Exception $previous = null) { parent::__construct($message, $code, $previous); $this->socket = $socket; }
public function __construct($message, $code = 0) { parent::__construct($message, $code); }
/** * @param string $sockError */ public function __construct($sockError) { parent::__construct('Can\'t connect to the server. ' . 'Socket error : ' . $sockError); }
/** * @param integer $type * @param string $sockError */ public function __construct($type, $sockError) { parent::__construct('Can\'t create a ' . $type . ' connection.' . 'Socket error : ' . $sockError); }
/** * Constructor * * @param string message * @param string user * @param string pass default '' */ public function __construct($message, $user, $pass = '') { parent::__construct($message); $this->user = $user; $this->pass = $pass; }
/** * Create a new instance */ public function __construct() { parent::__construct("Connection reset by peer"); }
public function __construct($message = '') { parent::__construct($message); }