pocketmine\scheduler\AsyncWorker::handleException PHP Метод

handleException() публичный Метод

    public function handleException(\Throwable $e)
    {
        $this->logger->logException($e);
    }

Usage Example

Пример #1
0
 public function run()
 {
     $this->result = null;
     if ($this->cancelRun !== true) {
         try {
             $this->onRun();
         } catch (\Throwable $e) {
             $this->crashed = true;
             $this->worker->handleException($e);
         }
     }
     $this->setGarbage();
 }