use CoreFramework\Listener\Listenable;
use CoreFramework\Object\BaseFrameworkSystem;
use CoreFramework\Socket\InvalidSocketException;
-
-// Import SPL stuff
-use \BadMethodCallException;
+use CoreFramework\Socket\NoSocketErrorDetectedException;
/**
* A general hub system class
* @param $socketData A valid socket data array (0 = IP/file name, 1 = port)
* @return void
* @throws InvalidSocketException If the stored socket resource is no socket resource
- * @throws BadMethodCallException If socket_last_error() gives zero back
+ * @throws NoSocketErrorDetectedException If socket_last_error() gives zero back
* @todo Move all this socket-related stuff into own class, most of it resides in BaseListener
*/
public final function handleSocketError ($method, $line, StorableSocket $socketInstance, array $socketData) {
// If the error code is zero, someone called this method without an error
if ($errorCode == 0) {
// No error detected (or previously cleared outside this method)
- throw new BadMethodCallException(array($this, $socketInstance->getSocketResource()), BaseListener::EXCEPTION_NO_SOCKET_ERROR);
+ throw new NoSocketErrorDetectedException(array($this, $socketInstance->getSocketResource()), BaseListener::EXCEPTION_NO_SOCKET_ERROR);
} // END - if
// Get handler (method) name
* @param $socketData A valid socket data array (0 = IP/file name, 1 = port)
* @return void
* @throws InvalidSocketException If the stored socket resource is no socket resource
- * @throws BadMethodCallException If socket_last_error() gives zero back
+ * @throws NoSocketErrorDetectedException If socket_last_error() gives zero back
* @todo Move all this socket-related stuff into own class, most of it resides in BaseListener
*/
function handleSocketError ($method, $line, StorableSocket $socketInstance, array $socketData);