函数计算PHP Runtime - exception 处理
主目录:php runtime FAQ 在本文中,我们来细化讲讲函数计算中 php runtime 中的异常处理问题,在官方文档中 php runtime 错误处理 没有讲解函数计算php runtime 环境中对于具体的错误类型是怎么处理的?比如级别很低的notice或者warning, 先来看几个例子: example Warning <?php function handler($event, $context) { $a = 1/0; return "ok"; } 执行结果: { "errorMessage": "Division by zero", "errorType": "ErrorException", "stackTrace": { "file": "/code/index.php
