2 // An exception for client sockets
3 class UnexpectedAwaitCommandException 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] Not awaiting command %s from peer %s<br />\n",
14 $msgArray['this']->__toString(),
17 $msgArray['this']->getPeerInstance()->getValidedIP()
20 // Call parent constructor
21 parent::__construct($message, $code);