2 // An exception for client sockets
3 class HubHelloException extends HubException {
7 * @param $message Message from the exception
8 * @param $code Code number for the exception
11 public final function __construct ($msgArray, $code) {
12 // Construct the message
13 $message = sprintf("[%s:%d] Peer <u>%s</u> has not replyed our %s request within %d retries.<br />\n",
14 $msgArray['this']->__toString(),
16 $msgArray['peer']->getValidatedIP(),
17 $msgArray['this']->getConfigInstance()->readConfig("hub_peer_hello"),
18 $msgArray['this']->getConfigInstance()->readConfig("hub_hello_retires")
21 // Call parent constructor
22 parent::__construct($message, $code);