]> git.mxchange.org Git - hub.git/blob - ship-simu/application/hub/exceptions/client/class_HubPeerTimeoutException.php
439758bc41f1806d8a11504c92ab9f1653482e1e
[hub.git] / ship-simu / application / hub / exceptions / client / class_HubPeerTimeoutException.php
1 <?php
2 // An exception for client sockets
3 class HubPeerTimeoutException extends HubException {
4         /**
5          * The constructor
6          *
7          * @param               $message                Message from the exception
8          * @param               $code           Code number for the exception
9          * @return      void
10          */
11         public final function __construct ($msgArray, $code) {
12                 // Construct the message
13                 $message = sprintf("[%s:%d] Peer <u>%s</u> is no longer responding. Trying to disconnect the peer...<br />\n", 
14                         $msgArray['this']->__toString(),
15                         $this->getLine(),
16                         $msgArray['peer']->getValidatedIP()
17                 );
18
19                 // Call parent constructor
20                 parent::__construct($message, $code);
21         }
22 }
23
24 // [EOF]
25 ?>