public function logErrorException(\Exception $e)
    {
        if ($this->getServerContext()->hasLogger(LoggerUtils::SYSTEM)) {
            $this->getServerContext()->getLogger(LoggerUtils::SYSTEM)->error($e->__toString());
        }
    }
public function logErrorException(\Exception $e)
    {
        if ($this->getServerContext()->hasLogger(LoggerUtils::SYSTEM)) {
            $this->getServerContext()->getLogger(LoggerUtils::SYSTEM)->error($e->__toString());
        }
    }
public function logErrorException ( \ Exception $ e ) { if ( $ this -> getServerContext ( ) -> hasLogger ( LoggerUtils :: SYSTEM ) ) { $ this -> getServerContext ( ) -> getLogger ( LoggerUtils :: SYSTEM ) -> error ( $ e -> __toString ( ) ) ; } }
Helper method that writes system exceptions to the system
logger if configured.

@param \Exception $e The exception to be logged

@return void
Helper method that writes system exceptions to the system logger if configured .