public function setCloseOnError($close)
    {
        if (!is_bool($close)) {
            throw new \Plop\Exception('Invalid value');
        }
        $this->closeOnError = $close;
        return $this;
    }
public function setCloseOnError($close)
    {
        if (!is_bool($close)) {
            throw new \Plop\Exception('Invalid value');
        }
        $this->closeOnError = $close;
        return $this;
    }
public function setCloseOnError ( $ close ) { if ( ! is_bool ( $ close ) ) { throw new \ Plop \ Exception ( 'Invalid value' ) ; } $ this -> closeOnError = $ close ; return $ this ; }
Set whether the socket must be closed
automatically on error.

\param bool $close
The socket will be closed on error
if this is \a true.

\retval Plop::HandlerInterface
The current handler instance (ie. \a $this).
Set whether the socket must be closed automatically on error .