/**
  * Creates a new SocketException.
  * 
  * @param	string		message
  * @param	Socket		socket class
  */
 public function __construct($message, Socket $socket)
 {
     $this->errorNumber = $socket->last_error();
     $this->errorDesc = $socket->get_error();
     $this->socketAddress = $socket->bind_address;
     $this->socketPort = $socket->bind_port;
     $this->socket = $socket;
     parent::__construct($message, $this->errorNumber);
 }