Closed wangsijia closed 3 months ago
如何在程序中获取PHP-Xlswriter的异常码? 代码: try { $xlsxObject = new \Vtiful\Kernel\Excel($config); // Init File $fileObject = $xlsxObject->constMemory($fileName); $fileObject->header($header_row) ->data($DateRangeRow); } catch(Exception $e) { $e->getCode(); }
使用$e->getCode()可以获取到吗?
Yeah, you're right.
如何在程序中获取PHP-Xlswriter的异常码? 代码: try { $xlsxObject = new \Vtiful\Kernel\Excel($config); // Init File $fileObject = $xlsxObject->constMemory($fileName); $fileObject->header($header_row) ->data($DateRangeRow); } catch(Exception $e) { $e->getCode(); }
使用$e->getCode()可以获取到吗?