2 // An exception for socket setup problems
3 class SocketSetupException extends SocketException {
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] Socket konnte nicht konfiguriert werden. Reason: <u>%s</u> (Code: <u>%d</u>)",
14 $msgArray['this']->__toString(),
16 socket_strerror($msgArray['code']),
20 // Call parent constructor
21 parent::__construct($message, $code);